From 52ffee41ebfbd3af2766ec53b608b444c104fc21 Mon Sep 17 00:00:00 2001 From: albertzeyer Date: Thu, 23 Jul 2009 21:32:48 +0000 Subject: [PATCH] small fixes git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@123 4df4b0f3-56ce-47cb-b001-ed939b7d65a6 --- src/main.cpp | 2 +- src/menu.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c4295aaa5..2b3cc405c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) if(CKP.shutdown == SHUTDOWN_NEW_GAME) { - if(loadStartMenu(&CKP) == 1) + if(!loadStartMenu(&CKP)) { CKP.shutdown = SHUTDOWN_EXIT; break; diff --git a/src/menu.cpp b/src/menu.cpp index a154b44d1..9c14b65af 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -147,8 +147,7 @@ extern char fade_black; bool loadStartMenu(stCloneKeenPlus *pCKP) { CDialog *GamesMenu; - int i; - bool ret; + bool ret = true; fade.mode = FADE_GO; fade.rate = FADE_NORM; @@ -163,7 +162,7 @@ bool loadStartMenu(stCloneKeenPlus *pCKP) GamesMenu->setDimensions(2,2,36,15); // Show me the games you detected! - for( i=0 ; i < pCKP->numGames ; i++ ) + for( int i=0 ; i < pCKP->numGames ; i++ ) { GamesMenu->addOptionText(pCKP->GameData[i].Name); }