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:
albertzeyer
2009-07-23 21:34:29 +00:00
parent 52ffee41eb
commit 08196ff543

View File

@@ -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;
}
}
}