mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
-CTD fix in Tixa in function FindBestPath in PathaAi.cpp
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@334 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+5
-2
@@ -400,8 +400,11 @@ BOOLEAN gfPlotDirectPath = FALSE;
|
||||
BOOLEAN gfEstimatePath = FALSE;
|
||||
BOOLEAN gfPathAroundObstacles = TRUE;
|
||||
|
||||
static UINT32 guiPlottedPath[256];
|
||||
UINT32 guiPathingData[256];
|
||||
// Lesh: fix CTD in Tixa
|
||||
// The game was trying to store very long path (270 cells) in 256-cell array and corrupted
|
||||
// some data, not belonged to array. It was ordinary array boundary break.
|
||||
static UINT32 guiPlottedPath[MAX_PATH_DATA_LENGTH];
|
||||
UINT32 guiPathingData[MAX_PATH_DATA_LENGTH];
|
||||
static INT32 giPathDataSize;
|
||||
static INT32 giPlotCnt;
|
||||
static UINT32 guiEndPlotGridNo;
|
||||
|
||||
Reference in New Issue
Block a user