[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdegames/granatier/src
From:       Mathias Kraus <k.hias () gmx ! de>
Date:       2010-01-28 0:00:44
Message-ID: 1264636844.580924.8248.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1081248 by mkraus:

backport commit 1081247
----
set only one shield bonus at a time

 M  +4 -1      player.cpp  


--- branches/KDE/4.4/kdegames/granatier/src/player.cpp #1081247:1081248
@@ -478,7 +478,10 @@
             }
             break;
         case Bonus::SHIELD:
-            m_listShield.append(0);
+            if(m_listShield.isEmpty() || m_listShield.last() != 0)
+            {
+                m_listShield.append(0);
+            }
             break;
         case Bonus::THROW:
             m_throwBomb = true;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic