Merge pull request #541 from Diegoisawesome/master

Misc documentation
This commit is contained in:
Diegoisawesome
2019-02-02 16:00:56 -06:00
committed by GitHub
12 changed files with 147 additions and 134 deletions

View File

@@ -1244,17 +1244,17 @@ void sub_8127E18(void)
for (i = 0; i < 14; i ++)
{
if (FlagGet(0xAE + i) == TRUE)
if (FlagGet(FLAG_DECORATION_1 + i) == TRUE)
{
FlagClear(0xAE + i);
FlagClear(FLAG_DECORATION_1 + i);
for (j = 0; j < gMapHeader.events->eventObjectCount; j ++)
{
if (gMapHeader.events->eventObjects[j].flagId == 0xAE + i)
if (gMapHeader.events->eventObjects[j].flagId == FLAG_DECORATION_1 + i)
{
break;
}
}
VarSet(0x3F20 + gMapHeader.events->eventObjects[j].graphicsId, sPlaceDecorationGraphicsDataBuffer.decoration->tiles[0]);
VarSet(VAR_0x3F20 + gMapHeader.events->eventObjects[j].graphicsId, sPlaceDecorationGraphicsDataBuffer.decoration->tiles[0]);
gSpecialVar_0x8005 = gMapHeader.events->eventObjects[j].localId;
gSpecialVar_0x8006 = sCurDecorMapX;
gSpecialVar_0x8007 = sCurDecorMapY;