1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #3481 from Laserlicht/bugfix_cheat

vcmiobelisk bugfix
This commit is contained in:
Ivan Savenko
2024-01-14 14:42:10 +02:00
committed by GitHub

View File

@@ -384,7 +384,7 @@ void PlayerMessageProcessor::cheatPuzzleReveal(PlayerColor player)
for(auto & obj : gameHandler->gameState()->map->objects) 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); gameHandler->setObjPropertyID(obj->id, ObjProperty::OBELISK_VISITED, t->id);
for(const auto & color : t->players) for(const auto & color : t->players)