aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorPaul Gilbert2010-08-23 23:04:08 +0000
committerEugene Sandulenko2010-10-12 23:18:16 +0000
commitedfd2e6aca1063530058800c0253a05eb2588917 (patch)
tree743770663ebf64afaae027a0df50502c3b14f43d /engines/sword25
parent11219f12a694c082d1df73ed670ee6578c3e746c (diff)
downloadscummvm-rg350-edfd2e6aca1063530058800c0253a05eb2588917.tar.gz
scummvm-rg350-edfd2e6aca1063530058800c0253a05eb2588917.tar.bz2
scummvm-rg350-edfd2e6aca1063530058800c0253a05eb2588917.zip
SWORD25: Corrected the definition of infinity constant
Previous string of ~(-1) was actually evaluating to 0, which was screwing up the path-finding algorithms svn-id: r53290
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/math/walkregion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/math/walkregion.cpp b/engines/sword25/math/walkregion.cpp
index c42bcedf83..6fbf489bdc 100644
--- a/engines/sword25/math/walkregion.cpp
+++ b/engines/sword25/math/walkregion.cpp
@@ -46,7 +46,7 @@ namespace Sword25 {
// Constants
// -----------------------------------------------------------------------------
-static const int infinity = (~(-1));
+static const int infinity = 0x7fffffff;
// -----------------------------------------------------------------------------
// Constructor / Destructor