From c66afb213b55c7e65dd317ef4b82276a8704f43f Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 3 Nov 2011 16:49:57 +0100 Subject: GOB: Fix analyser warnings regarding sprintf() parameter signness --- engines/gob/inter_v1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/gob/inter_v1.cpp') diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index 0eb8be1a03..2d3f2ad731 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -945,7 +945,7 @@ void Inter_v1::o1_printText(OpFuncParams ¶ms) { case TYPE_VAR_INT32: case TYPE_ARRAY_INT32: sprintf(buf + i, "%d", - VAR_OFFSET(_vm->_game->_script->readVarIndex())); + (int32)VAR_OFFSET(_vm->_game->_script->readVarIndex())); break; case TYPE_VAR_STR: -- cgit v1.2.3 From 2f7ae1109bb94ab9b0bf1fe20d554c7124eb8465 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 29 Jan 2012 00:00:04 +0100 Subject: GOB: Add a cheat debug command - Cheat the Diving minigame to a win - Get the mastermind solution --- engines/gob/inter_v1.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'engines/gob/inter_v1.cpp') diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index 2d3f2ad731..9aa190a456 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -658,20 +658,6 @@ void Inter_v1::o1_callSub(OpFuncParams ¶ms) { return; } - // A cheat to get around the stupid mastermind puzzle in Geisha, - // while we're still testing it - if ((_vm->getGameType() == kGameTypeGeisha) && (offset == 12934) && - _vm->isCurrentTot("hard.tot") && _vm->_inter->_variables) { - - uint32 digit1 = READ_VARO_UINT32(0x768); - uint32 digit2 = READ_VARO_UINT32(0x76C); - uint32 digit3 = READ_VARO_UINT32(0x770); - uint32 digit4 = READ_VARO_UINT32(0x774); - uint32 digit5 = READ_VARO_UINT32(0x778); - - warning("Mastermind solution: %d %d %d %d %d", digit1, digit2, digit3, digit4, digit5); - } - // Skipping the copy protection screen in Gobliiins if (!_vm->_copyProtection && (_vm->getGameType() == kGameTypeGob1) && (offset == 3905) && _vm->isCurrentTot(_vm->_startTot)) { -- cgit v1.2.3