Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 31c6586f9c338c0415aa9f39eb59a54f38a90d1e
https://github.com/Warzone2100/warzone2100/commit/31c6586f9c338c0415aa9f39eb59a54f38a90d1e
Author: Cyp <[email protected]>
Date: 2011-02-27 (Sun, 27 Feb 2011)
Changed paths:
M src/astar.cpp
M src/display3d.cpp
M src/droid.cpp
M src/fpath.cpp
M src/game.cpp
M src/move.cpp
M src/movedef.h
Log Message:
-----------
Fix crash in moveBestTarget when sMove.Position == 0.
The moveBestTarget function could be called while sMove.Position == 0, if
moveCalcBlockingSlide detected a gate and changed the status to MOVEPAUSE.
To reproduce the crash (before this commit), add a bunch of gates and a bunch
of droids, and have the droids patrol near the gates, and wait a while.
Renamed sMove.Position to sMove.pathIndex to reduce confusion and to verify all
uses of it.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits