[colobot] 324/390: Fixed event management in settings, again
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:22:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 45edb29de4194ea4dbf6589fdf2669615d443343
Author: krzys-h <krzys_h at interia.pl>
Date: Fri Apr 17 22:02:10 2015 +0200
Fixed event management in settings, again
---
src/ui/maindialog.cpp | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index e70419f..d642c18 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -74,8 +74,6 @@ const int KEY_VISIBLE = 6; // number of visible keys redefinable
const float WELCOME_LENGTH = 3.0f;
-const int MAX_FNAME = 255; // TODO: remove after rewrite to std::string
-
static int perso_color[3*10*3] =
{
// hair:
@@ -2301,28 +2299,27 @@ bool CMainDialog::EventProcess(const Event &event)
{
case EVENT_INTERFACE_SETUPd:
m_main->ChangePhase(PHASE_SETUPd);
- break;
+ return false;
case EVENT_INTERFACE_SETUPg:
m_main->ChangePhase(PHASE_SETUPg);
- break;
+ return false;
case EVENT_INTERFACE_SETUPp:
m_main->ChangePhase(PHASE_SETUPp);
- break;
+ return false;
case EVENT_INTERFACE_SETUPc:
m_main->ChangePhase(PHASE_SETUPc);
- break;
+ return false;
case EVENT_INTERFACE_SETUPs:
m_main->ChangePhase(PHASE_SETUPs);
- break;
+ return false;
default:
- return true;
+ break;
}
- return false;
}
if ( m_phase == PHASE_SETUPds ||
@@ -2350,28 +2347,27 @@ bool CMainDialog::EventProcess(const Event &event)
{
case EVENT_INTERFACE_SETUPd:
ChangePhase(PHASE_SETUPds);
- break;
+ return false;
case EVENT_INTERFACE_SETUPg:
ChangePhase(PHASE_SETUPgs);
- break;
+ return false;
case EVENT_INTERFACE_SETUPp:
ChangePhase(PHASE_SETUPps);
- break;
+ return false;
case EVENT_INTERFACE_SETUPc:
ChangePhase(PHASE_SETUPcs);
- break;
+ return false;
case EVENT_INTERFACE_SETUPs:
ChangePhase(PHASE_SETUPss);
- break;
+ return false;
default:
- return true;
+ break;
}
- return false;
}
if ( m_phase == PHASE_SETUPd || // setup/display ?
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list