fix reloading: simply calling LoadFromSMFile won't reset everything,

leading to duplicate notes and some other stuff not always being reverted
This commit is contained in:
Glenn Maynard
2003-06-24 20:06:16 +00:00
parent 9c2c8873c5
commit 9342550563
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -1306,14 +1306,12 @@ void SaveChanges()
void DontSaveChanges()
{
SMLoader ld;
switch( GAMESTATE->m_PlayMode )
{
case PLAY_MODE_ARCADE:
case PLAY_MODE_BATTLE:
case PLAY_MODE_RAVE:
ld.LoadFromSMFile(GAMESTATE->m_pCurSong->GetCacheFilePath(),
*GAMESTATE->m_pCurSong);
GAMESTATE->m_pCurSong->RevertFromDisk();
break;
case PLAY_MODE_NONSTOP:
case PLAY_MODE_ONI: