1
0
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:
Ivan Savenko 2024-01-14 14:42:10 +02:00 committed by GitHub
commit 059347048f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)