further fixes in menu logic
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@124 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
25
src/main.cpp
25
src/main.cpp
@@ -195,19 +195,18 @@ int main(int argc, char *argv[])
|
||||
|
||||
if(CKP.shutdown == SHUTDOWN_NEW_GAME)
|
||||
{
|
||||
if(!loadStartMenu(&CKP))
|
||||
{
|
||||
CKP.shutdown = SHUTDOWN_EXIT;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
//loadResourcesforGame(pCKP);
|
||||
if(Game->loadResources(CKP.Control.levelcontrol.episode, CKP.GameData[CKP.Resources.GameSelected-1].DataDirectory))
|
||||
CKP.shutdown = SHUTDOWN_RESTART;
|
||||
else
|
||||
CKP.shutdown = SHUTDOWN_NEW_GAME;
|
||||
}
|
||||
while(!loadStartMenu(&CKP))
|
||||
{
|
||||
g_pLogFile->textOut(PURPLE,"Error! You have chosen a Game that doesn't exist. Please correct the \"games.cfg\" File under \"data\" and choose another game.<br>");
|
||||
//cleanupResources(&CKP);
|
||||
//return 0;
|
||||
}
|
||||
|
||||
//loadResourcesforGame(pCKP);
|
||||
if(Game->loadResources(CKP.Control.levelcontrol.episode, CKP.GameData[CKP.Resources.GameSelected-1].DataDirectory))
|
||||
CKP.shutdown = SHUTDOWN_RESTART;
|
||||
else
|
||||
CKP.shutdown = SHUTDOWN_NEW_GAME;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user