From 38c2af0b8ba4e8fc271ba82fa844619783073e8b Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sun, 18 Apr 2021 18:08:15 +0000 Subject: [PATCH] FIX: mechanical units are not a valid blood donors (by Shadooow). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8960 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tactical/Soldier Control.cpp b/Tactical/Soldier Control.cpp index b44492f2..7c3eadc5 100644 --- a/Tactical/Soldier Control.cpp +++ b/Tactical/Soldier Control.cpp @@ -21141,6 +21141,10 @@ BOOLEAN SOLDIERTYPE::IsValidBloodDonor() if ( this->bTeam != gbPlayerNum ) return FALSE; + // mustn't be mechanical unit + if (AM_A_ROBOT(this) || this->flags.uiStatusFlags & SOLDIER_VEHICLE) + return FALSE; + // not if wounded if ( this->stats.bLife < this->stats.bLifeMax ) return FALSE;