diff options
author | KDSKardabox <bollygame94@gmail.com> | 2018-04-18 17:42:41 +0530 |
---|---|---|
committer | KDSKardabox <bollygame94@gmail.com> | 2018-04-18 17:42:41 +0530 |
commit | 7700fe61fed39ecda329db5087ca30e3eb3335ee (patch) | |
tree | 33e1d5f177e81c652fdd74c5ba23110330779efc /src/rotating_gate.c | |
parent | b818924feb77b454edbb1b44e68cd4762495cd30 (diff) |
Decompile field camera
Diffstat (limited to 'src/rotating_gate.c')
-rw-r--r-- | src/rotating_gate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rotating_gate.c b/src/rotating_gate.c index f68fe60ba..ac03508bf 100644 --- a/src/rotating_gate.c +++ b/src/rotating_gate.c @@ -17,10 +17,12 @@ #define GATE_ROT_ACW(arm, longArm) GATE_ROT(ROTATE_ANTICLOCKWISE, arm, longArm) #define GATE_ROT_NONE 255 +// static functions static void SpriteCallback_RotatingGate(struct Sprite *sprite); static u8 RotatingGate_CreateGate(u8 gateId, s16 deltaX, s16 deltaY); static void RotatingGate_HideGatesOutsideViewport(struct Sprite *sprite); +// enums enum { /* @@ -178,6 +180,7 @@ enum PUZZLE_ROUTE110_TRICK_HOUSE_PUZZLE6, }; +// structure struct RotatingGatePuzzle { s16 x; @@ -192,6 +195,7 @@ struct Coords8 s8 deltaY; }; +// .rodata // Fortree static const struct RotatingGatePuzzle sRotatingGate_FortreePuzzleConfig[] = { @@ -614,10 +618,12 @@ static const u8 sRotatingGate_ArmLayout[][4 * 2] = }, }; +// ewram static EWRAM_DATA u8 gRotatingGate_GateSpriteIds[ROTATING_GATE_PUZZLE_MAX] = {0}; static EWRAM_DATA const struct RotatingGatePuzzle *gRotatingGate_PuzzleConfig = NULL; static EWRAM_DATA u8 gRotatingGate_PuzzleCount = 0; +// text static s32 GetCurrentMapRotatingGatePuzzleType(void) { if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP(FORTREE_CITY_GYM) && |