Browse Source

added three seconds delay before terminating game when player steps down

master
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):
evt = self.player.get_event() evt = self.player.get_event()
if evt == PlayerEvent.QUIT: if evt == PlayerEvent.QUIT:
time.sleep(3)
if self.player.get_event() == PlayerEvent.QUIT:
self.running = False self.running = False
break break

Loading…
Cancel
Save