summaryrefslogtreecommitdiff
path: root/src/Game/Actor/Damage/actDamageInfoMgr.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2026-10-15 22:56:22 +0100
committerLéo Lam <leo@leolam.fr>2026-10-15 22:56:22 +0100
commit65ea3f7cddc8f87213bea3d3d8c9497d89aee5c5 (patch)
tree874c65bec709cb59bffcd3af5431603c480b55a4 /src/Game/Actor/Damage/actDamageInfoMgr.cpp
parent13861707e3a5e2b50870460f50769b9056e871ff (diff)
uking/scene: move the map getters to uking::StageInfo
They're linked before gameStageInfo.cpp's sinit with no other sinit in between, so they belong to gameStageInfo, not gameScene, and become StageInfo statics declared in gameStageInfo.h. Their GameScene owner was a guess. (AI assisted using Claude Opus 5.5)
Diffstat (limited to 'src/Game/Actor/Damage/actDamageInfoMgr.cpp')
-rw-r--r--src/Game/Actor/Damage/actDamageInfoMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Game/Actor/Damage/actDamageInfoMgr.cpp b/src/Game/Actor/Damage/actDamageInfoMgr.cpp
index e794326a..a1cafc92 100644
--- a/src/Game/Actor/Damage/actDamageInfoMgr.cpp
+++ b/src/Game/Actor/Damage/actDamageInfoMgr.cpp
@@ -1,5 +1,5 @@
#include "Game/Actor/Damage/actDamageInfoMgr.h"
-#include "Game/Scene/gameScene.h"
+#include "Game/Scene/gameStageInfo.h"
#include "KingSystem/ActorSystem/actGlobalParameter.h"
#include "KingSystem/GameData/gdtCommonFlagsUtils.h"
#include "KingSystem/Resource/GeneralParamList/resGParamListObjectGlobal.h"
@@ -49,7 +49,7 @@ bool DamageInfoMgr::isTrueFormMasterSword() const {
if (ksys::gdt::getFlag_LastBossGanonBeastGenerateFlag())
return true;
- const sead::SafeString& map = GameScene::getCurrentMapName();
+ const sead::SafeString& map = StageInfo::getCurrentMapName();
if (!ksys::gdt::getFlag_Die_PGanonElectric() && map == "RemainsElectric")
return true;