1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

A bunch of minor fixes, including enforced conversion warnings.

This commit is contained in:
DjWarmonger
2009-08-14 06:01:08 +00:00
parent ce86e88fa3
commit 9dbb6b03dd
3 changed files with 5 additions and 5 deletions

View File

@ -1803,7 +1803,7 @@ int CGCreature::takenAction(const CGHeroInstance *h, bool allowJoin) const
if(hlp >= 7)
factor = 11;
else if(hlp >= 1)
factor = 2*(hlp-1);
factor = (int)(2*(hlp-1));
else if(hlp >= 0.5)
factor = -1;
else if(hlp >= 0.333)
@ -3824,7 +3824,7 @@ void CGSirens::onHeroVisit( const CGHeroInstance * h ) const
sg.garrs[h->id] = h->army;
for (std::map<si32,std::pair<ui32,si32> >::const_iterator i = h->army.slots.begin(); i != h->army.slots.end(); i++)
{
int drown = i->second.second * 0.3;
int drown = (int)(i->second.second * 0.3);
if(drown)
{
sg.garrs[h->id].slots[i->first].second -= drown;