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:
Shadooow
2021-05-23 21:32:16 +00:00
parent b1233990d8
commit c890640e1d
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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
+1 -1
View File
@@ -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 );
}