Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #2220

Merged

Conversation

MatteoPiovanelli-Laser
Copy link
Contributor

As discussed on discord, I cleared a few of the compilation warnings from the Editor.Full solution

@@ -2017,35 +2017,24 @@ private bool ShowAutoCompleteForEnum(string typeName)
private bool ShouldShowThis(ScriptToken token, List<ScriptDefine> defines)
{
Settings gameSettings = Factory.AGSEditor.CurrentGame.Settings;
if ((token.IfNDefOnly == "STRICT") && (gameSettings.EnforceObjectBasedScript))
// Some settings have become obsolete and now have default values
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github shows this edit weird. Every 2 if conditions on the original file there is now only one, because one ended up being alwasy false.

@ivan-mogilko ivan-mogilko merged commit 87212e9 into adventuregamestudio:ags4 Nov 10, 2023
20 checks passed
@MatteoPiovanelli-Laser MatteoPiovanelli-Laser deleted the fix_warnings branch November 11, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants