From 1aa4e0e8d0485fae4465cbc78977a5ca5f6ddb8a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 5 Sep 2007 22:38:08 +0000 Subject: Changed several #ifdef _DEBUG code parts in Mickey with #if 0 (and commented them as debug). For some reason, _DEBUG seems to be set, causing all those code parts to be ran (which lead to all sorts of unexpected behavior) svn-id: r28861 --- engines/agi/preagi_mickey.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engines/agi/preagi_mickey.cpp b/engines/agi/preagi_mickey.cpp index 9fd889922f..999325ce62 100644 --- a/engines/agi/preagi_mickey.cpp +++ b/engines/agi/preagi_mickey.cpp @@ -1134,7 +1134,8 @@ void Mickey::flipSwitch() { printExeMsg(IDO_MSA_GAME_OVER[1]); printExeMsg(IDO_MSA_GAME_OVER[2]); -#ifdef _DEBUG +#if 0 + // DEBUG strcpy(game.szAddr, (char *)IDS_MSA_ADDR_PLANET[IDI_MSA_PLANET_EARTH]); game.nButtons = strlen(game.szAddr); #endif @@ -1142,7 +1143,8 @@ void Mickey::flipSwitch() { } else { printExeStr(game.iClue[game.nXtals]); -#ifdef _DEBUG +#if 0 + // DEBUG _vm->drawStr(24, 12, IDA_DEFAULT, (char *)IDS_MSA_NAME_PLANET_2[game.iPlanetXtal[game.nXtals]]); _vm->drawStr(24, 22, IDA_DEFAULT, (char *)IDS_MSA_ADDR_PLANET[game.iPlanetXtal[game.nXtals]]); strcpy(game.szAddr, (char *)IDS_MSA_ADDR_PLANET[game.iPlanetXtal[game.nXtals]]); @@ -2119,8 +2121,8 @@ void Mickey::initVars() { } game.iRmPic[IDI_MSA_PIC_SHIP_AIRLOCK] = IDI_MSA_PIC_SHIP_AIRLOCK_0; -#ifdef _DEBUG - +#if 0 + // DEBUG game.iPlanet = IDI_MSA_PLANET_EARTH; game.iRoom = IDI_MSA_PIC_SHIP_CONTROLS; game.fHasXtal = true; -- cgit v1.2.3