From 9f74842b2c68ce6c62ddf9374252ac99e31879ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20BERNIGAUD?= Date: Wed, 18 May 2011 20:30:03 +0200 Subject: [PATCH] fixed some unwanted debug output --- Source/Account.cpp | 4 ++-- Source/GameTick.cpp | 13 ++++--------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Source/Account.cpp b/Source/Account.cpp index 7eba588..3547135 100644 --- a/Source/Account.cpp +++ b/Source/Account.cpp @@ -122,7 +122,7 @@ Account* Account::loadFile(string filename) { funpackf(tfile, "Bi", &(acc->progress)); int nbCampaigns; funpackf(tfile, "Bi", &nbCampaigns); - printf("loading %d campaign progress info\n",nbCampaigns); + //~ printf("loading %d campaign progress info\n",nbCampaigns); for(int k=0;kcampaignProgress[campaignName].time)); funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].score)); funpackf(tfile, "Bf", &(acc->campaignProgress[campaignName].fasttime)); diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 56e9a8e..bad9674 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -1425,7 +1425,6 @@ void Game::Loadlevel(const char *name) { LOGFUNC; LOG(std::string("Loading level...") + name); - cout << "Loading level..." << name << endl; if(!gameon) visibleloading=1; @@ -1459,12 +1458,11 @@ void Game::Loadlevel(const char *name) { int mapvers; FILE *tfile; - char* buff=getcwd(NULL,0); - cout << buff << " " << FixedFN << endl; - free(buff); + //~ char* buff=getcwd(NULL,0); + //~ cout << buff << " " << FixedFN << endl; + //~ free(buff); tfile=fopen( FixedFN, "rb" ); if(tfile) { - cout << "existe" << endl; pause_sound(stream_firesound); scoreadded=0; windialogue=0; @@ -1532,7 +1530,6 @@ void Game::Loadlevel(const char *name) { emit_sound_np(consolesuccesssound); freeze=0; console=false; - cout << "console contente" << endl; } if(!stealthloading){ @@ -2093,7 +2090,7 @@ void Game::Loadlevel(const char *name) { if(!firstload) firstload=1; } else { - perror("Soucis"); + perror("Problem"); } leveltime=0; loadingstuff=0; @@ -7758,9 +7755,7 @@ void Game::TickOnceAfter(){ if(!firstload) LoadStuff(); whichchoice=0; - cout << "from " << campaignlevels[actuallevel].mapname.c_str() << "(" << actuallevel << ")" << endl; actuallevel=campaignlevels[actuallevel].nextlevel.front(); - cout << "to " << campaignlevels[actuallevel].mapname.c_str() << "(" << actuallevel << ")" << endl; visibleloading=1; stillloading=1; Loadlevel(campaignlevels[actuallevel].mapname.c_str()); -- 2.39.5