Browse Source

added three seconds delay before terminating game when player steps down

feature/balanceutils
Fr3deric 8 years ago committed by Frederic
parent
commit
f62fa39e69
  1. 2
      ttrs.py

2
ttrs.py

@ -352,6 +352,8 @@ class TtrsGame(threading.Thread): @@ -352,6 +352,8 @@ class TtrsGame(threading.Thread):
evt = self.player.get_event()
if evt == PlayerEvent.QUIT:
time.sleep(3)
if self.player.get_event() == PlayerEvent.QUIT:
self.running = False
break

Loading…
Cancel
Save