Skip to content

Commit 2cff555

Browse files
committed
Only allow a single skip tick per pause in PhysicsPlugin
1 parent 68b9604 commit 2cff555

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spockbot/plugins/helpers/physics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ def pause_physics(self, _=None, __=None):
9191
def client_tick(self, name, data):
9292
self.net.push_packet('PLAY>Player Position and Look',
9393
self.clientinfo.position.get_dict())
94-
if self.skip_tick:
95-
self.skip_tick = False
9694

9795
def physics_tick(self, _, __):
9896
if self.skip_tick:
97+
self.skip_tick = False
9998
return
10099
self.apply_accel()
101100
mtv = self.get_mtv()

0 commit comments

Comments
 (0)