mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- replaced NO_SOLDIER with NOBODY
- replaced NO_MAP_POS with NOWHERE git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1252 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -228,7 +228,7 @@ UINT32 guiNumAwaySlots = 0;
|
||||
UINT8 gbPlayerNum = 0;
|
||||
|
||||
// Global for current selected soldier
|
||||
UINT16 gusSelectedSoldier = NO_SOLDIER;
|
||||
UINT16 gusSelectedSoldier = NOBODY;
|
||||
INT8 gbShowEnemies = FALSE;
|
||||
|
||||
BOOLEAN gfMovingAnimation = FALSE;
|
||||
@@ -2780,7 +2780,7 @@ void SelectNextAvailSoldier( SOLDIERTYPE *pSoldier )
|
||||
}
|
||||
else
|
||||
{
|
||||
gusSelectedSoldier = NO_SOLDIER;
|
||||
gusSelectedSoldier = NOBODY;
|
||||
// Change UI mode to reflact that we are selected
|
||||
guiPendingOverrideEvent = I_ON_TERRAIN;
|
||||
}
|
||||
@@ -2851,7 +2851,7 @@ void InternalSelectSoldier( UINT16 usSoldierID, BOOLEAN fAcknowledge, BOOLEAN fF
|
||||
}
|
||||
|
||||
// Unselect old selected guy
|
||||
if ( gusSelectedSoldier != NO_SOLDIER )
|
||||
if ( gusSelectedSoldier != NOBODY )
|
||||
{
|
||||
// Get guy
|
||||
pOldSoldier = MercPtrs[ gusSelectedSoldier ];
|
||||
@@ -3213,7 +3213,7 @@ void HandlePlayerTeamMemberDeath( SOLDIERTYPE *pSoldier )
|
||||
}
|
||||
else
|
||||
{
|
||||
gusSelectedSoldier = NO_SOLDIER;
|
||||
gusSelectedSoldier = NOBODY;
|
||||
// Change UI mode to reflact that we are selected
|
||||
guiPendingOverrideEvent = I_ON_TERRAIN;
|
||||
}
|
||||
@@ -4237,7 +4237,7 @@ INT16 NewOKDestination( SOLDIERTYPE * pCurrSoldier, INT16 sGridNo, BOOLEAN fPeop
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
if (fPeopleToo && ( bPerson = WhoIsThere2( sGridNo, bLevel ) ) != NO_SOLDIER )
|
||||
if (fPeopleToo && ( bPerson = WhoIsThere2( sGridNo, bLevel ) ) != NOBODY )
|
||||
{
|
||||
// we could be multitiled... if the person there is us, and the gridno is not
|
||||
// our base gridno, skip past these checks
|
||||
@@ -4361,7 +4361,7 @@ INT16 NewOKDestinationAndDirection( SOLDIERTYPE * pCurrSoldier, INT16 sGridNo, I
|
||||
INT16 sDesiredLevel;
|
||||
BOOLEAN fOKCheckStruct;
|
||||
|
||||
if (fPeopleToo && ( bPerson = WhoIsThere2( sGridNo, bLevel ) ) != NO_SOLDIER )
|
||||
if (fPeopleToo && ( bPerson = WhoIsThere2( sGridNo, bLevel ) ) != NOBODY )
|
||||
{
|
||||
// we could be multitiled... if the person there is us, and the gridno is not
|
||||
// our base gridno, skip past these checks
|
||||
@@ -4508,7 +4508,7 @@ BOOLEAN IsLocationSittable( INT32 iMapIndex, BOOLEAN fOnRoof )
|
||||
{
|
||||
STRUCTURE *pStructure;
|
||||
INT16 sDesiredLevel;
|
||||
if( WhoIsThere2( (INT16)iMapIndex, 0 ) != NO_SOLDIER )
|
||||
if( WhoIsThere2( (INT16)iMapIndex, 0 ) != NOBODY )
|
||||
return FALSE;
|
||||
//Locations on roofs without a roof is not possible, so
|
||||
//we convert the onroof intention to ground.
|
||||
|
||||
Reference in New Issue
Block a user