1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

vcmiobelisk bugfix

This commit is contained in:
Laserlicht
2024-01-13 16:05:12 +01:00
committed by GitHub
parent f6e0f46040
commit 4e69853ca8

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)