Fix handling else ifs.

This commit is contained in:
Relintai 2022-06-04 08:05:16 +02:00
parent a92c488a82
commit e28b7cfb82

View File

@ -306,7 +306,7 @@ class GDSScope:
if type == GDScopeType.GDSCOPE_TYPE_IF: if type == GDScopeType.GDSCOPE_TYPE_IF:
s += "if (" + scope_data + ") {" s += "if (" + scope_data + ") {"
elif type == GDScopeType.GDSCOPE_TYPE_ELIF: elif type == GDScopeType.GDSCOPE_TYPE_ELIF:
s += "if (" + scope_data + ") {" s += "else if (" + scope_data + ") {"
elif type == GDScopeType.GDSCOPE_TYPE_ELSE: elif type == GDScopeType.GDSCOPE_TYPE_ELSE:
s += "else {" s += "else {"
elif type == GDScopeType.GDSCOPE_TYPE_FOR: elif type == GDScopeType.GDSCOPE_TYPE_FOR: