From dd3f1d3be2bd93bbfbdba01bcc88bb7377df5bb3 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sun, 22 Jun 2025 16:13:08 +0300 Subject: [PATCH] updating the minimap after loading the map --- inGameAppState.cpp | 1 + unit.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inGameAppState.cpp b/inGameAppState.cpp index 1013194..8f800a1 100755 --- a/inGameAppState.cpp +++ b/inGameAppState.cpp @@ -75,6 +75,7 @@ namespace battleship{ stateManager->attachAppState(activeState); Game::getSingleton()->updateLuaPlayers(true); + Map::Minimap::getSingleton()->updateImage(); } void InGameAppState::onDettached() { diff --git a/unit.cpp b/unit.cpp index c7fc9a2..fcee7e1 100755 --- a/unit.cpp +++ b/unit.cpp @@ -523,7 +523,7 @@ namespace battleship{ ActiveGameState *activeState = (ActiveGameState*)GameManager::getSingleton()->getStateManager()->getAppStateByType(AppStateType::ACTIVE_STATE); if(activeState && activeState->getPlayer()) - Map::Minimap::getSingleton()->updateImage(); + Map::Minimap::getSingleton()->updateImage(); } vector Unit::getSelectingPlayers(){