From 6b79910bcb5d70a116a1ff2cc3e8b011734ecb70 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 24 Sep 2009 10:15:50 +0000 Subject: Fixed some more warnings about unreachable code svn-id: r44300 --- engines/sword1/logic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sword1') diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp index be3797b0bd..769bf6d4c5 100644 --- a/engines/sword1/logic.cpp +++ b/engines/sword1/logic.cpp @@ -690,7 +690,7 @@ int Logic::interpretScript(Object *compact, int id, Header *scriptModule, int sc break; default: error("Invalid operator %d",scriptCode[pc-1]); - return 0; + //return 0; } } } @@ -1252,7 +1252,7 @@ int Logic::fnChangeSpeechText(Object *cpt, int32 id, int32 tar, int32 width, int //The game is halted for debugging. Maybe we'll remove this later. int Logic::fnTalkError(Object *cpt, int32 id, int32 c, int32 d, int32 e, int32 f, int32 z, int32 x) { error("fnTalkError for id %d, instruction %d", id, cpt->o_down_flag); - return SCRIPT_STOP; + //return SCRIPT_STOP; } int Logic::fnStartTalk(Object *cpt, int32 id, int32 target, int32 d, int32 e, int32 f, int32 z, int32 x) { @@ -1607,7 +1607,7 @@ int Logic::fnStopMusic(Object *cpt, int32 id, int32 a, int32 b, int32 c, int32 d int Logic::fnInnerSpace(Object *cpt, int32 id, int32 a, int32 b, int32 c, int32 d, int32 z, int32 x) { error("fnInnerSpace() not working."); - return SCRIPT_STOP; + //return SCRIPT_STOP; } int Logic::fnSetScreen(Object *cpt, int32 id, int32 target, int32 screen, int32 c, int32 d, int32 z, int32 x) { -- cgit v1.2.3