aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-07-08 13:33:10 +0000
committerMax Horn2002-07-08 13:33:10 +0000
commit204a5394199b4b0a37686d4919a0255f29eb9cdb (patch)
tree7dce5f1b64243900498e9c26d0afbbe388d4559e
parent32ea67dfed453f60442bdf3340edcb379ff86932 (diff)
downloadscummvm-rg350-204a5394199b4b0a37686d4919a0255f29eb9cdb.tar.gz
scummvm-rg350-204a5394199b4b0a37686d4919a0255f29eb9cdb.tar.bz2
scummvm-rg350-204a5394199b4b0a37686d4919a0255f29eb9cdb.zip
two more small QNX fixes
svn-id: r4493
-rw-r--r--actor.cpp2
-rw-r--r--stdafx.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/actor.cpp b/actor.cpp
index dfa2f522ba..1d1f5ca0de 100644
--- a/actor.cpp
+++ b/actor.cpp
@@ -147,7 +147,7 @@ int Actor::calcMovementFactor(int newX, int newY)
YXFactor = 0;
}
- if ((uint) abs(XYFactor >> 16) > speedx) {
+ if ((uint) abs((double)(XYFactor >> 16)) > speedx) {
XYFactor = speedx << 16;
if (diffX < 0)
XYFactor = -XYFactor;
diff --git a/stdafx.h b/stdafx.h
index 468d3d8dd7..a3daba0b54 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -2,6 +2,9 @@
* $Id$
*
* $Log$
+ * Revision 1.18 2002/07/08 13:33:10 fingolfin
+ * two more small QNX fixes
+ *
* Revision 1.17 2002/06/02 20:28:09 bbrox
* Small warning fix + double inclusion protection (can always be useful
* :) ).
@@ -119,6 +122,9 @@
#if !defined (__BEOS__)
#include <unistd.h>
#endif
+#if defined(__QNXNTO__)
+#include <strings.h> /* For strcasecmp */
+#endif
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>