mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Fix: removes the usMapPos code from actions that can be used by AI + improves function FindAdjacentGridEx to handle monsters and find adjacent tile for any of the tile they occupy (by Shadooow).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9026 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5535,7 +5535,7 @@ INT32 FindAdjacentGridEx( SOLDIERTYPE *pSoldier, INT32 sGridNo, UINT8 *pubDirect
|
||||
{
|
||||
SOLDIERTYPE *pTargetSoldier = MercPtrs[usSoldierIndex];
|
||||
sGridNo = pTargetSoldier->sGridNo;
|
||||
if (gAnimControl[pTargetSoldier->usAnimState].ubEndHeight == ANIM_PRONE)
|
||||
if (CREATURE_OR_BLOODCAT(pTargetSoldier) || gAnimControl[pTargetSoldier->usAnimState].ubEndHeight == ANIM_PRONE)
|
||||
{
|
||||
// prone; could be the base tile is inaccessible but the rest isn't...
|
||||
for (INT8 cnt = 0; cnt < NUM_WORLD_DIRECTIONS; cnt++)
|
||||
|
||||
Reference in New Issue
Block a user