mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
fix: mercs in a helicopter can initiate movement by clicking in their destination column, like regular on-foot/in-car movement (by rfrt)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9185 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6003,15 +6003,16 @@ BOOLEAN CanCharacterMoveInStrategic( SOLDIERTYPE *pSoldier, INT8 *pbErrorNumber
|
||||
{
|
||||
SOLDIERTYPE *pVehicle = GetSoldierStructureForVehicle(pSoldier->iVehicleId);
|
||||
|
||||
if (pSoldier->iVehicleId == iHelicopterVehicleId)
|
||||
; // intentionally do nothing to skip the following checks
|
||||
// too damaged?
|
||||
if (pVehicle->stats.bLife < OKLIFE)
|
||||
else if (pVehicle->stats.bLife < OKLIFE)
|
||||
{
|
||||
*pbErrorNumber = 47;
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
// out of fuel?
|
||||
if (!VehicleHasFuel(pVehicle))
|
||||
else if (!VehicleHasFuel(pVehicle))
|
||||
{
|
||||
*pbErrorNumber = 42;
|
||||
return(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user