forked from FluXy/SMC
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
See http://secretmaryo.org/phpBB3/viewtopic.php?f=22&t=7821 , patch by deved2:
*** savegame.cpp 2012-03-24 06:31:02.000000000 -0400
--- savegame_new.cpp 2012-04-25 07:25:39.000000000 -0400
*************** void cSave :: Init( void )
*** 177,182 ****
--- 177,186 ----
m_player_type = 0;
m_player_state = 0;
m_itembox_item = 0;
+ if( m_maryo_type == MARYO_GHOST )
+ {
+ m_player_previous_state = 0;
+ }
// level
m_level_time = 0;
*************** bool cSavegame :: Save_Game( unsigned in
*** 493,498 ****
--- 497,506 ----
savegame->m_lives = pLevel_Player->m_lives;
savegame->m_points = pLevel_Player->m_points;
savegame->m_player_type = pLevel_Player->m_maryo_type;
+ if( m_maryo_type == MARYO_GHOST )
+ {
+ savegame->m_player_previous_type = pLevel_Player->m_maryo_type_temp_power;
+ }
savegame->m_player_state = pLevel_Player->m_state;
savegame->m_itembox_item = pHud_Itembox->m_item_id;