1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00
This commit is contained in:
DjWarmonger
2012-09-28 06:10:01 +00:00
parent ecda63683e
commit 076974729a

View File

@ -1326,10 +1326,11 @@ void CGameHandler::newTurn()
{
// Skyship, probably easier to handle same as Veil of darkness
//do it every new day after veils apply
if (player != GameConstants::NEUTRAL_PLAYER) //do not reveal fow for neutral player
{
FoWChange fw;
fw.mode = 1;
fw.player = player;
// find all hidden tiles
auto & fow = gs->getPlayerTeam(player)->fogOfWarMap;
for (size_t i=0; i<fow.size(); i++)
@ -1340,6 +1341,7 @@ void CGameHandler::newTurn()
sendAndApply (&fw);
}
}
if (t->hasBonusOfType (Bonus::DARKNESS))
{
t->hideTiles(t->getOwner(), t->getBonusLocalFirst(Selector::type(Bonus::DARKNESS))->val);