Add hack to not leave cards mounted

This commit is contained in:
Chris Danford
2004-10-03 05:27:52 +00:00
parent d19c0bbe0a
commit 9fe9b0884a
6 changed files with 44 additions and 2 deletions
+6 -1
View File
@@ -234,7 +234,6 @@ void GameState::PlayersFinalized()
MEMCARDMAN->LockCards( true );
// apply saved default modifiers if any
FOREACH_HumanPlayer( pn )
{
@@ -270,6 +269,9 @@ void GameState::PlayersFinalized()
if( !IsHumanPlayer(pn) )
ApplyModifiers( pn, DEFAULT_CPU_MODIFIERS );
}
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
MEMCARDMAN->UnmountAllCards();
}
/* This data is added to each player profile, and to the machine profile per-player. */
@@ -342,6 +344,9 @@ void GameState::EndGame()
}
if( PREFSMAN->m_bMemoryCardsMountOnlyWhenNecessary )
MEMCARDMAN->MountAllCards();
BOOKKEEPER->WriteToDisk();
PROFILEMAN->SaveAllProfiles();