forked from Telos4/RoboRally
added quit event
This commit is contained in:
parent
fa863d4e77
commit
55b468d314
|
@ -422,6 +422,8 @@ class RemoteController:
|
||||||
auto_control = not auto_control
|
auto_control = not auto_control
|
||||||
if auto_control:
|
if auto_control:
|
||||||
self.target = targets[current_target]
|
self.target = targets[current_target]
|
||||||
|
elif event.key == pygame.QUIT:
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if self.controlling:
|
if self.controlling:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user