Procházet zdrojové kódy

fix crash exiting easter eggs accessed from WAIT scene

BlueChip před 3 roky
rodič
revize
c896ce1b03
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      wii_anal_keys.c

+ 4 - 2
wii_anal_keys.c

@@ -100,12 +100,14 @@ bool  wait_key (const eventMsg_t* const msg,  state_t* const state)
 	if (msg->input.type == InputTypeShort) {
 		switch (msg->input.key) {
 			case InputKeyLeft:                       //# <L [ SHORT-LEFT ]
-				sceneSet(state, SCENE_SPLASH);
+				timerEn(state, false);               // Stop the timer
+				sceneSetEgg(state, SCENE_SPLASH);
 				used = true;
 				break;
 
 			case InputKeyUp:                         //# <U [ SHORT-UP ]
-				sceneSet(state, SCENE_RIP);
+				timerEn(state, false);               // Stop the timer
+				sceneSetEgg(state, SCENE_RIP);
 				used = true;
 				break;