]> ruin.nu Git - hbs.git/commitdiff
now removes removes score when you lose roids..
authorMichael Andreen <harv@ruin.nu>
Mon, 22 Apr 2002 21:58:29 +0000 (21:58 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 22 Apr 2002 21:58:29 +0000 (21:58 +0000)
bs/planet.cpp

index 3e1f39ae65eab751585cde681e1cddc6789c67bd..75387030ab2809822f3e135e58f224d20ea41ff7 100644 (file)
@@ -131,6 +131,9 @@ void Planet::takeRoids(std::string type, int number, int tick = 0)
        for (int i = ticks; i <= tick; ++i )
                m_Roids[type].push_back(roids);
        m_Roids[type][tick] -= number;
        for (int i = ticks; i <= tick; ++i )
                m_Roids[type].push_back(roids);
        m_Roids[type][tick] -= number;
+
+       if (type != "uninit")
+               addPlanetScore(-3000*number, tick);
 }
 
 
 }