mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- removed variables that are not used
- some fixes on soldier direction calculations git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1403 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6319,8 +6319,8 @@ BOOLEAN ValidQuickExchangePosition( )
|
||||
BOOLEAN IsValidJumpLocation( SOLDIERTYPE *pSoldier, INT16 sGridNo, BOOLEAN fCheckForPath )
|
||||
{
|
||||
INT16 sFourGrids[4], sDistance=0, sSpot, sIntSpot;
|
||||
INT16 sDirs[4] = { NORTH, EAST, SOUTH, WEST };
|
||||
INT32 cnt;
|
||||
INT8 sDirs[4] = { NORTH, EAST, SOUTH, WEST };
|
||||
//INT32 cnt;
|
||||
UINT8 ubGuyThere;
|
||||
UINT8 ubMovementCost;
|
||||
INT32 iDoorGridNo;
|
||||
@@ -6333,7 +6333,7 @@ BOOLEAN IsValidJumpLocation( SOLDIERTYPE *pSoldier, INT16 sGridNo, BOOLEAN fChec
|
||||
}
|
||||
|
||||
// Loop through positions...
|
||||
for (cnt = 0; cnt < 4; cnt++)
|
||||
for (INT8 cnt = 0; cnt < 4; cnt++)
|
||||
{
|
||||
// MOVE OUT TWO DIRECTIONS
|
||||
sIntSpot = NewGridNo( sGridNo, DirectionInc( sDirs[ cnt ] ) );
|
||||
|
||||
Reference in New Issue
Block a user