mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
fix: vehicle assignment will no longer show destroyed vehicles
fix: helicopter will no longer be available when Skyrider dies (will not work in saved games where he is already dead though) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9040 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3976,7 +3976,10 @@ void HandleNPCTeamMemberDeath( SOLDIERTYPE *pSoldierOld )
|
||||
EndQuest( QUEST_KILL_DEIDRANNA, pSoldierOld->sSectorX, pSoldierOld->sSectorY );
|
||||
break;
|
||||
|
||||
|
||||
case SKYRIDER:
|
||||
//shadooow: disables helicopter use if skyrider dies
|
||||
fSkyRiderAvailable = FALSE;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -445,7 +445,7 @@ BOOLEAN IsThisVehicleAccessibleToSoldier( SOLDIERTYPE *pSoldier, INT32 iId )
|
||||
}
|
||||
|
||||
// now check if vehicle is valid
|
||||
if( pVehicleList[ iId ].fValid == FALSE )
|
||||
if( pVehicleList[ iId ].fValid == FALSE || pVehicleList[iId].fDestroyed == TRUE)
|
||||
{
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user