Dismissing vehicle will drop items in its inventory in current sector without asking.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9257 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2022-01-14 22:58:32 +00:00
parent 67f62736ed
commit 7c40f27359
+7
View File
@@ -12694,6 +12694,13 @@ void BeginRemoveMercFromContract( SOLDIERTYPE *pSoldier )
return; return;
} }
#endif #endif
//shadooow: it makes no sense, but if someone wants to dismiss vehicle then do not popup the department box and drop its items in current sector without asking
if (pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE)
{
StrategicRemoveMerc(pSoldier);
HandleLeavingOfEquipmentInCurrentSector(pSoldier->ubID);
return;
}
// WANNE: Nothing to do here, when we want to dismiss the robot // WANNE: Nothing to do here, when we want to dismiss the robot
BOOLEAN fAmIaRobot = AM_A_ROBOT( pSoldier ); BOOLEAN fAmIaRobot = AM_A_ROBOT( pSoldier );