mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-09 09:13:24 +08:00
Fixed minor exception
This commit is contained in:
parent
86f0ae22ae
commit
27420d3f64
@ -253,6 +253,7 @@ class SpazBot(basespaz.Spaz):
|
||||
# Otherwise try to go pick it up.
|
||||
else:
|
||||
assert self.target_flag.node
|
||||
if self.target_flag.node.exists():
|
||||
target_pt_raw = ba.Vec3(*self.target_flag.node.position)
|
||||
diff = (target_pt_raw - our_pos)
|
||||
diff = ba.Vec3(diff[0], 0, diff[2]) # Don't care about y.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user