Skip to content

Commit

Permalink
Resolve reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky720 committed May 23, 2022
1 parent 1a3b845 commit d55d920
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
13 changes: 6 additions & 7 deletions UndertaleModLib/Compiler/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -693,14 +693,13 @@ private static Statement ParseFunction(CompileContext context)
result.Children.Add(ParseStatement(context));
if (expression)
return result;
else // Whatever you call non-anonymous
else // Whatever you call non-anonymous definitions
{
Statement trueresult = new Statement(Statement.StatementKind.Assign, new Lexer.Token(TokenKind.Assign));
trueresult.Children.Add(destination);
trueresult.Children.Add(new Statement(Statement.StatementKind.Token, trueresult.Token));
trueresult.Children.Add(result);
return trueresult;

Statement trueResult = new Statement(Statement.StatementKind.Assign, new Lexer.Token(TokenKind.Assign));
trueResult.Children.Add(destination);
trueResult.Children.Add(new Statement(Statement.StatementKind.Token, trueResult.Token));
trueResult.Children.Add(result);
return trueResult;
}
}

Expand Down
9 changes: 8 additions & 1 deletion UndertaleModTool/CommunityScripts/FancyRoomSelect.csx
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,15 @@ selector_active = 0
exiting = 0
", Data);

string version;
if (Data.GMS2_3)
version = "2.3";
else if (gms2)
version = "2";
else
version = "1";

ScriptMessage("Successfully applied for Gamemaker " + (Data.GMS2_3 ? "2.3" : (gms2 ? "2" : "1")) + @"
ScriptMessage(@$"Successfully applied for Gamemaker {version}
Controls:
- F3: open/close menu
- Escape: close menu
Expand Down

0 comments on commit d55d920

Please sign in to comment.