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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user