]> ruin.nu Git - hbs.git/commitdiff
evil bug.. HBS_0_3_2
authorMichael Andreen <harv@ruin.nu>
Mon, 22 Apr 2002 20:00:03 +0000 (20:00 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 22 Apr 2002 20:00:03 +0000 (20:00 +0000)
bs/planet.cpp

index 01b2125f5c9d428e5f9fb196887e6235dd448403..3e1f39ae65eab751585cde681e1cddc6789c67bd 100644 (file)
@@ -175,6 +175,8 @@ void Planet::runBattle(std::vector<Fleet*> friendly, std::vector<Fleet*> hostile
                //Reset roids
                for (RoidList::iterator roid = m_Roids.begin(); roid != m_Roids.end(); ++roid)
                        setRoids(roid->first, roids(roid->first, tick-1), tick);
+
+               setPlanetScore(planetScore(tick - 1), tick);
                
                
                calcOneTick(&allFriends, &allHostiles, stealfriendly, stealhostile, tick );
@@ -278,6 +280,8 @@ void Planet::calcOneTick(Planet* friendly, Fleet* hostile, std::map<std::string,
        }
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void Planet::calculateScoreLoss(std::vector<Fleet*> friendly, int tick = 1)
 {
        for (vector<Fleet*>::iterator i = friendly.begin(); i != friendly.end(); ++i)