Selaa lähdekoodia

fix crash exiting easter eggs accessed from WAIT scene .. closes #3

BlueChip 3 vuotta sitten
vanhempi
commit
6213c74789
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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) {
 	if (msg->input.type == InputTypeShort) {
 		switch (msg->input.key) {
 		switch (msg->input.key) {
 			case InputKeyLeft:                       //# <L [ SHORT-LEFT ]
 			case InputKeyLeft:                       //# <L [ SHORT-LEFT ]
-				sceneSet(state, SCENE_SPLASH);
+				timerEn(state, false);               // Stop the timer
+				sceneSetEgg(state, SCENE_SPLASH);
 				used = true;
 				used = true;
 				break;
 				break;
 
 
 			case InputKeyUp:                         //# <U [ SHORT-UP ]
 			case InputKeyUp:                         //# <U [ SHORT-UP ]
-				sceneSet(state, SCENE_RIP);
+				timerEn(state, false);               // Stop the timer
+				sceneSetEgg(state, SCENE_RIP);
 				used = true;
 				used = true;
 				break;
 				break;