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

List:       kde-commits
Subject:    KDE/kdegames/granatier/src
From:       Mathias Kraus <k.hias () gmx ! de>
Date:       2010-01-27 23:56:13
Message-ID: 1264636573.365696.4737.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1081247 by mkraus:

set only one shield bonus at a time

 M  +4 -1      player.cpp  


--- trunk/KDE/kdegames/granatier/src/player.cpp #1081246:1081247
@@ -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