diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-12-01 16:33:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 14:33:06 -0800 |
commit | 4fc272fea6bc7332fae031ebeb12362cff1c35de (patch) | |
tree | 88092c6da3a6bb741caceab54f5372aee4ad5bae /src/code_8040094.c | |
parent | fd8720b75c56ef3f641e6c5abf6c446929c824b9 (diff) |
No wifi + 2 days on train = more decomp (#80)
* No wifi + 2 days on train = more decomp
* layin some more
* one func, one file
Diffstat (limited to 'src/code_8040094.c')
-rw-r--r-- | src/code_8040094.c | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/src/code_8040094.c b/src/code_8040094.c index 4e30873..cdebf7b 100644 --- a/src/code_8040094.c +++ b/src/code_8040094.c @@ -25,34 +25,25 @@ extern void SendMessage(u32, const char *); extern const char *gUnknown_80FD040; // It became brighter on the floor -struct unk8049590 -{ - u32 unk0; - u16 unk4; -}; - -extern struct unk8049590 *GetMapEntity(u32, u32); +extern struct MapTile *GetMapEntity(u32, u32); // Luminous Orb??? -void sub_804002C(u32 param_1) +void HandleLuminousOrbAction(u32 param_1) { - struct unk8049590 *iVar1; - int innerCounter; - int iVar3; - int iVar4; + struct MapTile *mapTile; + int XCoord; + int YCoord; gDungeonGlobalData->unk1820B = 1; - iVar3 = 0; - do { - innerCounter = 0; - iVar4 = iVar3 + 1; - do { - iVar1 = GetMapEntity(innerCounter, iVar3); - iVar1->unk4 = iVar1->unk4 | 1; - innerCounter++; - } while (innerCounter < 0x38); - iVar3 = iVar4; - } while (iVar4 < 0x20); + + for(YCoord = 0; YCoord <= DUNGEON_MAX_SIZE_Y; YCoord++) + { + for(XCoord = 0; XCoord <= DUNGEON_MAX_SIZE_X; XCoord++) + { + mapTile = GetMapEntity(XCoord, YCoord); + mapTile->unk4 = mapTile->unk4 | 1; + } + } sub_803F580(0); sub_8049ED4(); sub_8040A84(); |