Merge branch 'master' into pubsync

This commit is contained in:
Eric Froemling 2020-04-13 17:33:18 -07:00
commit ec8b323537

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.