# HG changeset patch # User Thibaut Girka # Date 1341689597 -7200 # Node ID a628b48a745f5746013d1a2c8ccfb1859209f03b # Parent b3049fb5c44855d011329c79ff7868cd0a1c29b5 Fix timeout display issue (> 99 should be displayed as 99) diff --git a/pytouhou/games/eosd.py b/pytouhou/games/eosd.py --- a/pytouhou/games/eosd.py +++ b/pytouhou/games/eosd.py @@ -186,7 +186,7 @@ class EoSDInterface(object): self.labels['boss_lives'].set_text('%d' % boss.remaining_lives) self.labels['boss_lives'].changed = True - timeout = (boss.timeout - boss.frame) // 60 + timeout = min((boss.timeout - boss.frame) // 60, 99) timeout_label = self.labels['timeout'] if timeout >= 20: timeout_label.set_color('blue')