@@ -280,13 +280,26 @@ void setTimeStopTextStorage()
280
280
281
281
void speedUpMario ()
282
282
{
283
- if (!Cheat[SPEED_UP_MARIO].Active )
283
+ ttyd::mario::Player *player = ttyd::mario::marioGetPtr ();
284
+ const uint16_t TubeMode = 22 ;
285
+
286
+ if (!Cheat[SPEED_UP_MARIO].Active || ChangingCheatButtonCombo)
284
287
{
288
+ // Check to see if Mario is currently in Tube Mode or not
289
+ if (player->currentMotionId == TubeMode)
290
+ {
291
+ // marioSetSpec does not set the values for Tube Mode
292
+ player->unk_184 = 1 ;
293
+ player->unk_188 = 3 ;
294
+ }
295
+ else
296
+ {
297
+ // Set the values to their default for the current character
298
+ ttyd::mario::marioSetSpec ();
299
+ }
285
300
return ;
286
301
}
287
302
288
- ttyd::mario::Player *player = ttyd::mario::marioGetPtr ();
289
-
290
303
if (checkButtonComboEveryFrame (Cheat[SPEED_UP_MARIO].ButtonCombo ))
291
304
{
292
305
player->wPlayerBaseSpeed = 16 ;
@@ -295,8 +308,18 @@ void speedUpMario()
295
308
}
296
309
else
297
310
{
298
- player->unk_184 = 1 ;
299
- player->unk_188 = 2.25 ;
311
+ // Check to see if Mario is currently in Tube Mode or not
312
+ if (player->currentMotionId == TubeMode)
313
+ {
314
+ // marioSetSpec does not set the values for Tube Mode
315
+ player->unk_184 = 1 ;
316
+ player->unk_188 = 3 ;
317
+ }
318
+ else
319
+ {
320
+ // Set the values to their default for the current character
321
+ ttyd::mario::marioSetSpec ();
322
+ }
300
323
}
301
324
}
302
325
@@ -895,9 +918,9 @@ void actionCommandsTimingsInit()
895
918
}
896
919
897
920
// Reset the values checked when drawing the text
921
+ DisplayActionCommands.TypeToDraw = 0 ;
898
922
DisplayActionCommands.Last_A_Frame = -1 ;
899
923
DisplayActionCommands.Last_B_Frame = -1 ;
900
- DisplayActionCommands.TypeToDraw = -1 ;
901
924
902
925
int32_t Last_A_Frame = -1 ;
903
926
int32_t Last_B_Frame = -1 ;
@@ -921,9 +944,9 @@ void actionCommandsTimingsInit()
921
944
const int32_t DefenseResult = DisplayActionCommands.Trampoline (
922
945
battle_unit, attack_params);
923
946
924
- const int32_t SuccessfulTiming = 0 ;
925
- const int32_t PressedTooManyButtons = 1 ;
926
- const int32_t PressedTooEarly = 2 ;
947
+ const uint32_t SuccessfulTiming = 1 ;
948
+ const uint32_t PressedTooManyButtons = 2 ;
949
+ const uint32_t PressedTooEarly = 3 ;
927
950
928
951
if (DefenseResult == 4 )
929
952
{
0 commit comments