diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2014-02-09 23:01:29 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2014-02-09 23:01:29 (GMT) |
commit | b3c040e43e51a7b0cc9018fd0a9b0ad6b50a4f90 (patch) | |
tree | d82f82b11fdb6c5bd326f94e9a017a97df394bb7 | |
parent | 8a150cec47588cf24759791311b877e648318fb5 (diff) |
fix delay in select partida state
-rw-r--r-- | src/game/SelectPartidaState.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/SelectPartidaState.py b/src/game/SelectPartidaState.py index 6cc1a30..a643dca 100644 --- a/src/game/SelectPartidaState.py +++ b/src/game/SelectPartidaState.py @@ -21,6 +21,7 @@ from gettext import gettext as _ OVER_COLOR = (255, 0, 0) NORMAL_COLOR = (255, 125, 50) +FLAG = 10 class CSelectPartidaState(CGameState): @@ -36,7 +37,7 @@ class CSelectPartidaState(CGameState): self.mOverEnabled = True self.mToDel = None - self.mFlag = 60 + self.mFlag = FLAG self.misEmptyP1 = True self.misEmptyP2 = True @@ -376,7 +377,6 @@ class CSelectPartidaState(CGameState): self.mFlag = self.mFlag - 1 if self.mFlag < 0: self.mFlag = 0 - if self.mFlag == 0: if self.mPartida1.clicked(): if self.misEmptyP1: @@ -469,7 +469,7 @@ class CSelectPartidaState(CGameState): for e in self.mP3_Stars: CGame().removeChild(e) CGame().addChild(self.mEmpty3) - self.mFlag = 60 + self.mFlag = FLAG return if self.mButtonFalse.clicked(): @@ -479,7 +479,7 @@ class CSelectPartidaState(CGameState): CGame().removeChild(self.mButtonTrue) CGame().removeChild(self.mButtonFalse) self.mButtonFalse.set_bgColor(NORMAL_COLOR) - self.mFlag = 40 + self.mFlag = FLAG return |