Fix build

Former-commit-id: ea5e1d66ce
This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-07 14:39:00 +02:00
parent bdfc97fa78
commit 8b9a10256a
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include "MetroidPrime/CEntity.hpp" #include "MetroidPrime/CEntity.hpp"
#include "MetroidPrime/CAreaFog.hpp" #include "MetroidPrime/CAreaFog.hpp"
#include "MetroidPrime/CGameArea.hpp"
class CScriptDistanceFog : public CEntity { class CScriptDistanceFog : public CEntity {
ERglFogMode x34_mode; ERglFogMode x34_mode;

View File

@ -38,7 +38,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj
switch (msg) { switch (msg) {
case kSM_InitializedInArea: case kSM_InitializedInArea:
if (x60_explicit) { if (x60_explicit) {
CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
if (x34_mode == kRFM_None) { if (x34_mode == kRFM_None) {
fog->DisableFog(); fog->DisableFog();
} else { } else {
@ -48,7 +48,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj
break; break;
case kSM_Action: case kSM_Action:
if (x61_nonZero) { if (x61_nonZero) {
CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog(); CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
if (x34_mode != kRFM_None) { if (x34_mode != kRFM_None) {
fog->FadeFog(x34_mode, x38_color, x3c_range, x44_colorDelta, x48_rangeDelta); fog->FadeFog(x34_mode, x38_color, x3c_range, x44_colorDelta, x48_rangeDelta);
} else { } else {