1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed bug #208 - lookout tower (and possibly other structures) update map view when built.

This commit is contained in:
DjWarmonger 2009-11-08 07:20:42 +00:00
parent bf7dfca6f5
commit 882ae5a53a

View File

@ -2061,6 +2061,13 @@ bool CGameHandler::buildStructure( si32 tid, si32 bid )
vistiCastleObjects (t, t->visitingHero); vistiCastleObjects (t, t->visitingHero);
if(t->garrisonHero) if(t->garrisonHero)
vistiCastleObjects (t, t->garrisonHero); vistiCastleObjects (t, t->garrisonHero);
//reveal ground for lookout tower
FoWChange fw;
fw.player = t->tempOwner;
fw.mode = 1;
getTilesInRange(fw.tiles, t->pos, t->getSightRadious(), t->tempOwner,1);
sendAndApply(&fw);
return true; return true;
} }
bool CGameHandler::razeStructure (si32 tid, si32 bid) bool CGameHandler::razeStructure (si32 tid, si32 bid)