mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-28 10:03:15 +08:00
Update spaz.py
This commit is contained in:
parent
2a50321753
commit
f7c235f030
@ -376,7 +376,7 @@ class Spaz(ba.Actor):
|
||||
Called to 'press jump' on this spaz;
|
||||
used by player or AI connections.
|
||||
"""
|
||||
if not self.node or self.frozen or self.node.knockout > 0.0:
|
||||
if not self.node:
|
||||
return
|
||||
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
||||
assert isinstance(t_ms, int)
|
||||
@ -399,7 +399,7 @@ class Spaz(ba.Actor):
|
||||
Called to 'press pick-up' on this spaz;
|
||||
used by player or AI connections.
|
||||
"""
|
||||
if not self.node or self.frozen or self.node.knockout > 0.0:
|
||||
if not self.node:
|
||||
return
|
||||
t_ms = ba.time(timeformat=ba.TimeFormat.MILLISECONDS)
|
||||
assert isinstance(t_ms, int)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user