mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Space Viking's many mercs changes plus numerous generic bug fixes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1090,14 +1090,14 @@ BOOLEAN InternalAddSoldierToSector( UINT8 ubID, BOOLEAN fCalculateDirection, BOO
|
||||
|
||||
if ( pSoldier->bActive )
|
||||
{
|
||||
// ATE: Make sure life of elliot is OK if from a meanwhile
|
||||
if ( AreInMeanwhile() && pSoldier->ubProfile == ELLIOT )
|
||||
{
|
||||
if ( pSoldier->stats.bLife < OKLIFE )
|
||||
// ATE: Make sure life of elliot is OK if from a meanwhile
|
||||
if ( AreInMeanwhile() && pSoldier->ubProfile == ELLIOT )
|
||||
{
|
||||
pSoldier->stats.bLife = 25;
|
||||
if ( pSoldier->stats.bLife < OKLIFE )
|
||||
{
|
||||
pSoldier->stats.bLife = 25;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ADD SOLDIER TO SLOT!
|
||||
if (pSoldier->flags.uiStatusFlags & SOLDIER_OFF_MAP)
|
||||
@@ -1151,7 +1151,7 @@ BOOLEAN InternalAddSoldierToSector( UINT8 ubID, BOOLEAN fCalculateDirection, BOO
|
||||
if( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE )
|
||||
{
|
||||
sGridNo = FindGridNoFromSweetSpotWithStructDataUsingGivenDirectionFirst( pSoldier, STANDING, pSoldier->sInsertionGridNo, 12, &ubCalculatedDirection, FALSE, pSoldier->ubInsertionDirection );
|
||||
// ATE: Override insertion direction
|
||||
// ATE: Override insertion direction
|
||||
if (sGridNo == NOWHERE)
|
||||
{
|
||||
// Well, we gotta place this soldier/vehicle somewhere. Just use the first position for now
|
||||
|
||||
Reference in New Issue
Block a user