mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Fixed #1089.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user