This commit is contained in:
parent
a59bdb7bb3
commit
18e1f665af
18 changed files with 245 additions and 271 deletions
|
@ -296,6 +296,7 @@ void CGameScene::think(int _frames)
|
|||
level=getLevelNumber();
|
||||
chapter=getChapterNumber();
|
||||
|
||||
// Open next level?
|
||||
gameSlot->levelHasBeenCompleted(chapter-1,level-1);
|
||||
if(level!=5&& // Don't open any levels after finishing a bonus level
|
||||
!(level==4&&chapter==5)) // Don't open any levels after finishing final level
|
||||
|
@ -316,6 +317,12 @@ void CGameScene::think(int _frames)
|
|||
CMapScene::setLevelToStartOn(chapterToOpen-1,levelToOpen-1);
|
||||
}
|
||||
|
||||
// New hi-spatula-count?
|
||||
if(m_player->getSpatulasHeld()>gameSlot->getSpatulaCollectedCount(chapter-1,level-1))
|
||||
{
|
||||
gameSlot->setSpatulaCollectedCount(chapter-1,level-1,m_player->getSpatulasHeld(),getTotalSpatCountForThisLevel());
|
||||
}
|
||||
|
||||
// Level finished - go to map or fma
|
||||
if(level==4)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue