Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block tilt warnings once game has tilted #1529

Merged
merged 8 commits into from
Jan 4, 2021
Prev Previous commit
Next Next commit
More indenting
  • Loading branch information
enteryourinitials authored and jabdoa2 committed Jan 4, 2021
commit fc1fd60b8f2481e8ca7155c5d351a02302b0bc16
8 changes: 3 additions & 5 deletions mpf/modes/tilt/code/tilt.py
Original file line number Diff line number Diff line change
@@ -114,11 +114,9 @@ def tilt_warning(self, **kwargs):
del kwargs
self.last_tilt_warning_switch = self.machine.clock.get_time()

if (not self.machine.game or
not self.machine.game.player or
self.machine.game.ending or
self.machine.game.tilted):
return
if (not self.machine.game or not self.machine.game.player or
self.machine.game.ending or self.machine.game.tilted):
return

self.info_log("Tilt Warning")