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:
parent
bf7dfca6f5
commit
882ae5a53a
@ -2061,6 +2061,13 @@ bool CGameHandler::buildStructure( si32 tid, si32 bid )
|
||||
vistiCastleObjects (t, t->visitingHero);
|
||||
if(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;
|
||||
}
|
||||
bool CGameHandler::razeStructure (si32 tid, si32 bid)
|
||||
|
Loading…
Reference in New Issue
Block a user