[Scummvm-cvs-logs] SF.net SVN: scummvm:[53290] scummvm/trunk/engines/sword25/math/walkregion. cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Oct 13 01:18:17 CEST 2010


Revision: 53290
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53290&view=rev
Author:   sev
Date:     2010-10-12 23:18:16 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
SWORD25: Corrected the definition of infinity constant

Previous string of ~(-1) was actually evaluating to 0, which was screwing up the path-finding algorithms

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/math/walkregion.cpp

Modified: scummvm/trunk/engines/sword25/math/walkregion.cpp
===================================================================
--- scummvm/trunk/engines/sword25/math/walkregion.cpp	2010-10-12 23:17:58 UTC (rev 53289)
+++ scummvm/trunk/engines/sword25/math/walkregion.cpp	2010-10-12 23:18:16 UTC (rev 53290)
@@ -46,7 +46,7 @@
 // Constants
 // -----------------------------------------------------------------------------
 
-static const int infinity = (~(-1));
+static const int infinity = 0x7fffffff;
 
 // -----------------------------------------------------------------------------
 // Constructor / Destructor


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list