summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-03-05 11:43:58 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2022-03-05 19:09:49 +0100
commitd6bbbf2db6bd078a887138506bec5abcc36b3020 (patch)
treeed21da6d5dcf2db20e4022830903b5ba19443c87 /src/main.c
parentd18fed1fb9d52eb8c4be311d3c55bf4d29893d93 (diff)
Improve LayerStruct
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 136ab17d..254d5711 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
#include "save.h"
#include "message.h"
#include "interrupts.h"
+#include "game.h"
extern u32 gRand;
@@ -121,8 +122,8 @@ static bool32 SoftResetKeysPressed(void) {
void SetTask(u32 task) {
gMain.task = task;
- gMain.state = 0;
- gMain.substate = 0;
+ gMain.state = GAMETASK_TRANSITION;
+ gMain.substate = GAMEMAIN_INITROOM;
}
void DisableInterruptsAndDMA(void) {