mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Fixed bug #208 - lookout tower (and possibly other structures) update map view when built.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user