aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2007-07-29 17:37:08 +0000
committerMax Horn2007-07-29 17:37:08 +0000
commit50537d3ae0a9d41f42419d1898941bac3160b6d4 (patch)
treee7d2ec8d5bf6971c4f08de09aa243834c66e2c25 /engines
parentb8d7b6e448dc25e5f11247fc063af6bffb05d333 (diff)
downloadscummvm-rg350-50537d3ae0a9d41f42419d1898941bac3160b6d4.tar.gz
scummvm-rg350-50537d3ae0a9d41f42419d1898941bac3160b6d4.tar.bz2
scummvm-rg350-50537d3ae0a9d41f42419d1898941bac3160b6d4.zip
Fixed some warnings
svn-id: r28308
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/scene_v2.cpp6
-rw-r--r--engines/kyra/script_v2.cpp2
-rw-r--r--engines/parallaction/parallaction_ns.cpp2
3 files changed, 6 insertions, 4 deletions
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) {
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp
index 742f2c860a..e9030b0abb 100644
--- a/engines/parallaction/parallaction_ns.cpp
+++ b/engines/parallaction/parallaction_ns.cpp
@@ -70,7 +70,7 @@ int Parallaction_ns::init() {
void Parallaction_ns::callFunction(uint index, void* parm) {
printf("index = %i\n", index);
- assert(index >= 0 && index < 25); // magic value 25 is maximum # of callables for Nippon Safes
+ assert(index < 25); // magic value 25 is maximum # of callables for Nippon Safes
(this->*_callables[index])(parm);
}