Skip to content

Commit

Permalink
Use getAstForCustomString() when replacing Math.FUCKTON_OF_SPACES
Browse files Browse the repository at this point in the history
  • Loading branch information
netux committed Nov 20, 2023
1 parent 373cab9 commit daa9a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ function parseMember(object, member) {
} else if (name === "RING_EXPLOSION_RADIUS_MULT") {
return getAstForNumber(0.48);
} else if (name === "FUCKTON_OF_SPACES" || name === "LOTS_OF_SPACES") {
return new Ast("__customString__", [new Ast(" ".repeat(170), [], [], "CustomStringLiteral"), getAstForNull(), getAstForNull(), getAstForNull()]);
return getAstForCustomString(" ".repeat(170));
} else {
error("Unhandled member 'math."+name+"'");
}
Expand Down

0 comments on commit daa9a1f

Please sign in to comment.