[planetblupi] 01/19: Prevent screen move when we are not playing or building
Didier Raboud
odyx at moszumanska.debian.org
Fri Dec 8 09:03:54 UTC 2017
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository planetblupi.
commit 32e734f59d2f4f4f950b2c1664eaccadb5a9b8c3
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date: Fri Nov 3 08:55:07 2017 +0100
Prevent screen move when we are not playing or building
- It closes issue #46.
---
src/event.cxx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/event.cxx b/src/event.cxx
index c574663..e008ba7 100644
--- a/src/event.cxx
+++ b/src/event.cxx
@@ -5426,6 +5426,9 @@ CEvent::TreatEventBase (const SDL_Event & event)
case SDLK_UP:
case SDLK_DOWN:
{
+ if (m_phase != EV_PHASE_PLAY && m_phase != EV_PHASE_BUILD)
+ return true;
+
bool left, right, up, down;
const Uint8 * state = SDL_GetKeyboardState (nullptr);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git
More information about the Pkg-games-commits
mailing list