VAR_0x3F20 is not a var
This commit is contained in:
parent
373d73eb3b
commit
99bfd8c80f
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef GUARD_CONSTANTS_VARS_H
|
||||
#define GUARD_CONSTANTS_VARS_H
|
||||
|
||||
#define VAR_0x3F20 0x3F20
|
||||
#define UNKNOWN_VAR_OFFSET_3F20 0x3F20
|
||||
|
||||
#define VARS_START 0x4000
|
||||
|
||||
|
|
|
@ -1254,7 +1254,7 @@ void sub_8127E18(void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
VarSet(VAR_0x3F20 + gMapHeader.events->eventObjects[j].graphicsId, sPlaceDecorationGraphicsDataBuffer.decoration->tiles[0]);
|
||||
VarSet(UNKNOWN_VAR_OFFSET_3F20 + gMapHeader.events->eventObjects[j].graphicsId, sPlaceDecorationGraphicsDataBuffer.decoration->tiles[0]);
|
||||
gSpecialVar_0x8005 = gMapHeader.events->eventObjects[j].localId;
|
||||
gSpecialVar_0x8006 = sCurDecorMapX;
|
||||
gSpecialVar_0x8007 = sCurDecorMapY;
|
||||
|
|
|
@ -552,7 +552,7 @@ void sub_80E933C(void)
|
|||
metatile = MapGridGetMetatileBehaviorAt(gSpecialVar_0x8006 + 7, gSpecialVar_0x8007 + 7);
|
||||
if (MetatileBehavior_IsSecretBaseLargeMatEdge(metatile) == TRUE || MetatileBehavior_IsLargeMatCenter(metatile) == TRUE)
|
||||
{
|
||||
gSpecialVar_Result = gMapHeader.events->eventObjects[objIdx].graphicsId + VAR_0x3F20;
|
||||
gSpecialVar_Result = gMapHeader.events->eventObjects[objIdx].graphicsId + UNKNOWN_VAR_OFFSET_3F20;
|
||||
VarSet(gSpecialVar_Result, gDecorations[roomDecor[decorIdx]].tiles[0]);
|
||||
gSpecialVar_Result = gMapHeader.events->eventObjects[objIdx].localId;
|
||||
FlagClear(gSpecialVar_0x8004 + 0xAE);
|
||||
|
|
Loading…
Reference in a new issue