From 50537d3ae0a9d41f42419d1898941bac3160b6d4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 29 Jul 2007 17:37:08 +0000 Subject: Fixed some warnings svn-id: r28308 --- engines/kyra/scene_v2.cpp | 6 ++++-- engines/kyra/script_v2.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/kyra') diff --git a/engines/kyra/scene_v2.cpp b/engines/kyra/scene_v2.cpp index fbda1f8455..7863fa6638 100644 --- a/engines/kyra/scene_v2.cpp +++ b/engines/kyra/scene_v2.cpp @@ -689,11 +689,13 @@ int KyraEngine_v2::findWay(int x, int y, int toX, int toY, int *moveTable, int m x &= ~3; toX &= ~3; y &= ~1; toY &= ~1; int size = KyraEngine::findWay(x, y, toX, toY, moveTable, moveTableSize); - /*if (size) { + if (size) { +/* int temp = pathfinderUnk1(moveTable); temp = pathfinderUnk3(temp, x, y); pathfinderUnk5(moveTable, temp, x, y, moveTableSize); - }*/ +*/ + } return getMoveTableSize(moveTable); } diff --git a/engines/kyra/script_v2.cpp b/engines/kyra/script_v2.cpp index ce1cd99e03..3e1bc4ed2f 100644 --- a/engines/kyra/script_v2.cpp +++ b/engines/kyra/script_v2.cpp @@ -281,7 +281,7 @@ int KyraEngine_v2::o2_drawSceneShapeOnPage(ScriptState *script) { } int KyraEngine_v2::o2_restoreBackBuffer(ScriptState *script) { - debugC(3, kDebugLevelScriptFuncs, "o2_restoreBackBuffer(%p) (%d, %d)", (const void *)script, stackPos(0)); + debugC(3, kDebugLevelScriptFuncs, "o2_restoreBackBuffer(%p) (%d)", (const void *)script, stackPos(0)); int disable = stackPos(0); int oldState = 0; if (disable) { -- cgit v1.2.3