diff options
| author | notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> | 2020-08-05 20:59:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 20:59:51 -0700 |
| commit | cfaae3f47f3c6a84586389ddbefe1629486d3318 (patch) | |
| tree | df742958fd185bbf0c131d299ff5cfd911d0c3cc /src/code_0808091C.c | |
| parent | dd5b9001766de50a676c95f85ead61b0c39a7305 (diff) | |
| parent | c73ef05b3d0add77917a61e9a4f67d20b4a6ed48 (diff) | |
Merge pull request #41 from notyouraveragehooman/master
wisp.c OK, misc code
Diffstat (limited to 'src/code_0808091C.c')
| -rw-r--r-- | src/code_0808091C.c | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/src/code_0808091C.c b/src/code_0808091C.c index 1607ddf0..dcb86728 100644 --- a/src/code_0808091C.c +++ b/src/code_0808091C.c @@ -1,4 +1,7 @@ #include "global.h" +#include "entity.h" +#include "structures.h" +#include "functions.h" #include "room.h" extern void sub_0805E5A8(); @@ -6,16 +9,35 @@ extern void sub_0805E5A8(); extern RoomControls gRoomControls; extern u32 gUnk_0200B650; extern u32 gUnk_02025EB0; -extern u8 gScreenTransition[10]; -extern void DoExitTransition(Entity*); +extern void DoExitTransition(ScreenTransitionData*); extern void sub_080809D4(); -void sub_0808091C(Entity* param_1, u32 param_2) +void sub_080808D8(void) { + gScreenTransition.transitionType = 0; +} + +void sub_080808E4(void) { + + if (sub_08052638(gScreenTransition.areaID)) { + gScreenTransition.transitionType = 0; + } else { + gScreenTransition.transitionType = 5; + } +} + +void sub_08080904(void) { + gScreenTransition.transitionType = 1; +} + +void sub_08080910(void) { + gScreenTransition.transitionType = 1; +} +void sub_0808091C(ScreenTransitionData* param_1, u32 param_2) { DoExitTransition(param_1); - gScreenTransition[9] = param_2; + gScreenTransition.transitionType = param_2; return; } |
