From 49aae450ad70970959da81b0b7b69e7795e2a2ca Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 10 Sep 2016 13:37:29 +0200 Subject: [PATCH] Use some elif. --- tabakrolletjie/scenes/day.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index 468c4ca..ec94bc6 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -174,10 +174,10 @@ class DayScene(BaseScene): if ev.key in (pgl.K_q, pgl.K_ESCAPE): from .menu import MenuScene SceneChangeEvent.post(scene=MenuScene()) - if ev.key == pgl.K_e: + elif ev.key == pgl.K_e: from .night import NightScene SceneChangeEvent.post(scene=NightScene()) - if ev.key == pgl.K_SPACE: + elif ev.key == pgl.K_SPACE: self._paused = not self._paused elif ev.type == pgl.MOUSEBUTTONDOWN: if ev.button == 1: -- 2.34.1