mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-1
@@ -918,6 +918,21 @@ INT32 FindBestPath(SOLDIERTYPE *s , INT16 sDestination, INT8 ubLevel, INT16 usMo
|
||||
|
||||
//DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String( "PATHAI %d", curLoc ) );
|
||||
|
||||
// 0verhaul: Cannot change direction over a fence!
|
||||
if (prevCost == TRAVELCOST_FENCE)
|
||||
{
|
||||
iLoopStart = trailTree[pCurrPtr->sPathNdx].stepDir;
|
||||
if (bLoopState == LOOPING_CLOCKWISE) {
|
||||
iLoopEnd = gOneCCDirection[ iLoopStart];
|
||||
} else {
|
||||
iLoopEnd = gOneCDirection[ iLoopStart];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
iLoopStart = iLoopEnd = 0;
|
||||
}
|
||||
|
||||
if (fContinuousTurnNeeded)
|
||||
{
|
||||
if (trailTreeNdx < 2)
|
||||
@@ -942,7 +957,6 @@ INT32 FindBestPath(SOLDIERTYPE *s , INT16 sDestination, INT8 ubLevel, INT16 usMo
|
||||
//for ( iCnt = iLoopStart; iCnt != iLoopEnd; iCnt = (iCnt + iLoopIncrement) % MAXDIR )
|
||||
for ( iCnt = iLoopStart; ; )
|
||||
{
|
||||
|
||||
#ifdef VEHICLE
|
||||
/*
|
||||
if (fTurnSlow)
|
||||
|
||||
Reference in New Issue
Block a user