[planetblupi] 51/61: Fix regression when recording or playing a demo
Didier Raboud
odyx at moszumanska.debian.org
Thu Nov 2 19:25:00 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 67c7c4c97018f306a2276dae7dee44d37fc6c2d9
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date: Tue Oct 31 15:59:07 2017 +0100
Fix regression when recording or playing a demo
Only keyboard events must be accepted with demos.
---
src/event.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/event.cxx b/src/event.cxx
index a29ee99..106e294 100644
--- a/src/event.cxx
+++ b/src/event.cxx
@@ -3501,6 +3501,9 @@ CEvent::DecorAutoShift ()
}
else
{
+ if (m_bDemoRec || m_bDemoPlay)
+ return;
+
switch (m_mouseSprite)
{
case SPRITE_ARROWL:
@@ -3542,9 +3545,6 @@ CEvent::DecorAutoShift ()
m_bShift = false;
- if (m_bDemoRec || m_bDemoPlay)
- return;
-
if (!byKeyboard && (!m_bFullScreen || m_scrollSpeed == 0))
return;
--
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