From eb525be52a81f8c243486de8e38f9bea4e54d365 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Sat, 25 Sep 2010 20:35:01 +0000 Subject: [PATCH] Fixed previous commit. Actually it was float/int mismatch, --- hch/CObjectHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hch/CObjectHandler.cpp b/hch/CObjectHandler.cpp index deb25e320..34fe1c070 100644 --- a/hch/CObjectHandler.cpp +++ b/hch/CObjectHandler.cpp @@ -1949,7 +1949,7 @@ int CGTownInstance::creatureGrowth(const int & level) const ret *= (1 + VLC->creh->creatures[creid]->valOfBonuses(Bonus::CREATURE_GROWTH_PERCENT)/100); // double growth or plague if(tempOwner != NEUTRAL_PLAYER) { - ret *= (1 + cb->gameState()->players[tempOwner].valOfBonuses(Bonus::CREATURE_GROWTH_PERCENT)/100); //Statue of Legion + ret *= (100.0f + cb->gameState()->players[tempOwner].valOfBonuses(Bonus::CREATURE_GROWTH_PERCENT))/100; //Statue of Legion for (std::vector::const_iterator it = cb->gameState()->players[tempOwner].dwellings.begin(); it != cb->gameState()->players[tempOwner].dwellings.end(); ++it) { //+1 for each dwelling if (VLC->creh->creatures[creid]->idNumber == (*it)->creatures[0].second[0])