Fixed minor exception

This commit is contained in:
indev 2020-04-13 12:32:36 +03:00
parent 86f0ae22ae
commit 27420d3f64

View File

@ -253,6 +253,7 @@ class SpazBot(basespaz.Spaz):
# Otherwise try to go pick it up. # Otherwise try to go pick it up.
else: else:
assert self.target_flag.node assert self.target_flag.node
if self.target_flag.node.exists():
target_pt_raw = ba.Vec3(*self.target_flag.node.position) target_pt_raw = ba.Vec3(*self.target_flag.node.position)
diff = (target_pt_raw - our_pos) diff = (target_pt_raw - our_pos)
diff = ba.Vec3(diff[0], 0, diff[2]) # Don't care about y. diff = ba.Vec3(diff[0], 0, diff[2]) # Don't care about y.