This commit is contained in:
Paul 2001-05-09 20:15:01 +00:00
parent 5f86af045b
commit 84cc92f6e4
7 changed files with 89 additions and 22 deletions

View file

@ -88,10 +88,10 @@ void CGameSlotManager::setActiveSlot(unsigned int _slot)
Params:
Returns:
---------------------------------------------------------------------- */
CGameSlotManager::GameSlot CGameSlotManager::getSlotData()
CGameSlotManager::GameSlot *CGameSlotManager::getSlotData()
{
ASSERT(s_currentGameSlot!=0);
return *s_currentGameSlot;
return s_currentGameSlot;
}
@ -119,6 +119,7 @@ void CGameSlotManager::eraseGameSlot(unsigned int _slot)
ASSERT(_slot<=NUM_GAME_SLOTS);
GameSlot *slot;
int i,j;
slot=&s_gameSlots[_slot];
@ -126,6 +127,13 @@ void CGameSlotManager::eraseGameSlot(unsigned int _slot)
slot->m_lives=INITIAL_LIVES;
slot->m_continues=INITIAL_CONTINUES;
slot->m_maxLevelCompleted=0;
for(i=0;i<NUM_CHAPTERS*NUM_LEVELS;i++)
{
for(j=0;j<8;j++)
{
slot->m_spatulaCollectedFlags[i][j]=0;
}
}
}