mirror of https://github.com/PrimeDecomp/prime.git
Fix build
This commit is contained in:
parent
292c1b8186
commit
ea5e1d66ce
|
@ -4,6 +4,7 @@
|
|||
#include "MetroidPrime/CEntity.hpp"
|
||||
|
||||
#include "MetroidPrime/CAreaFog.hpp"
|
||||
#include "MetroidPrime/CGameArea.hpp"
|
||||
|
||||
class CScriptDistanceFog : public CEntity {
|
||||
ERglFogMode x34_mode;
|
||||
|
|
|
@ -38,7 +38,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj
|
|||
switch (msg) {
|
||||
case kSM_InitializedInArea:
|
||||
if (x60_explicit) {
|
||||
CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
|
||||
CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
|
||||
if (x34_mode == kRFM_None) {
|
||||
fog->DisableFog();
|
||||
} else {
|
||||
|
@ -48,7 +48,7 @@ void CScriptDistanceFog::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId obj
|
|||
break;
|
||||
case kSM_Action:
|
||||
if (x61_nonZero) {
|
||||
CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
|
||||
CGameArea::CAreaFog* fog = stateMgr.World()->Area(GetCurrentAreaId())->AreaFog();
|
||||
if (x34_mode != kRFM_None) {
|
||||
fog->FadeFog(x34_mode, x38_color, x3c_range, x44_colorDelta, x48_rangeDelta);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue