diff options
author | Paul Gilbert | 2010-08-23 23:04:08 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:18:16 +0000 |
commit | edfd2e6aca1063530058800c0253a05eb2588917 (patch) | |
tree | 743770663ebf64afaae027a0df50502c3b14f43d | |
parent | 11219f12a694c082d1df73ed670ee6578c3e746c (diff) | |
download | scummvm-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
-rw-r--r-- | engines/sword25/math/walkregion.cpp | 2 |
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 |