mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-08 01:49:35 +01:00
Fix variable transforms inside methods.
This commit is contained in:
parent
e28b7cfb82
commit
2eb04ef96f
@ -382,7 +382,15 @@ class GDSScope:
|
||||
s += indents + l + ";\n"
|
||||
continue
|
||||
|
||||
if l.begins_with("var "):
|
||||
if l.find("preload") != -1:
|
||||
s += indents + "//" + l + ";\n"
|
||||
continue
|
||||
|
||||
s += indents + " " + transform_variable_to_cpp(l) + ";\n"
|
||||
else:
|
||||
s += indents + l + ";\n"
|
||||
|
||||
s += "}\n"
|
||||
|
||||
return s
|
||||
|
Loading…
Reference in New Issue
Block a user