mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-30 23:18:08 +02:00
Merge pull request #3481 from Laserlicht/bugfix_cheat
vcmiobelisk bugfix
This commit is contained in:
commit
059347048f
@ -384,7 +384,7 @@ void PlayerMessageProcessor::cheatPuzzleReveal(PlayerColor player)
|
||||
|
||||
for(auto & obj : gameHandler->gameState()->map->objects)
|
||||
{
|
||||
if(obj && obj->ID == Obj::OBELISK)
|
||||
if(obj && obj->ID == Obj::OBELISK && !obj->wasVisited(player))
|
||||
{
|
||||
gameHandler->setObjPropertyID(obj->id, ObjProperty::OBELISK_VISITED, t->id);
|
||||
for(const auto & color : t->players)
|
||||
|
Loading…
Reference in New Issue
Block a user