mirror of https://github.com/pmret/papermario.git
fix warnings
This commit is contained in:
parent
7c70208230
commit
f08eab499c
|
|
@ -46,8 +46,8 @@ NpcSettings M(goombaNpcSettings) = {
|
|||
.height = 20,
|
||||
.radius = 23,
|
||||
.ai = &M(GoombaAI),
|
||||
.onHit = EnemyNpcHit,
|
||||
.onDefeat = EnemyNpcDefeat,
|
||||
.onHit = &EnemyNpcHit,
|
||||
.onDefeat = &EnemyNpcDefeat,
|
||||
.level = 5,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,6 @@ class LabelAllocation(Visitor):
|
|||
class Compile(Transformer):
|
||||
SIGNED_INT = str
|
||||
HEX_INT = str
|
||||
ESCAPED_STRING = str
|
||||
|
||||
def transform(self, tree):
|
||||
self.alloc = LabelAllocation()
|
||||
|
|
@ -215,6 +214,9 @@ class Compile(Transformer):
|
|||
def CNAME(self, name):
|
||||
return f"(Bytecode)(&{name})"
|
||||
|
||||
def ESCAPED_STRING(self, str_with_quotes):
|
||||
return f"(Bytecode)({str_with_quotes})"
|
||||
|
||||
NOT_PARENS = str
|
||||
def c_const_expr_internal(self, tree):
|
||||
return f"({' '.join(tree.children)})"
|
||||
|
|
|
|||
Loading…
Reference in New Issue