- 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:
lalien
2007-09-20 14:35:33 +00:00
parent 5a0abb4a14
commit ebd1e97d37
11 changed files with 36 additions and 32 deletions
+3 -3
View File
@@ -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 ] ) );