From 9ba3ccd22096dec50b3e73677db90640c083473f Mon Sep 17 00:00:00 2001 From: johns <> Date: Thu, 14 Mar 2002 14:49:01 +0000 Subject: [PATCH] All player can rescue allied units. --- src/unit/unit.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp index 51063c739..532659699 100644 --- a/src/unit/unit.cpp +++ b/src/unit/unit.cpp @@ -1507,11 +1507,15 @@ global void RescueUnits(void) } DebugLevel3(" = %d\n",n); // - // Look if human near the unit. + // Look if ally near the unit. // for( i=0; i<n; ++i ) { +#if 0 if( around[i]->Type->CanAttack && around[i]->Player->Type==PlayerPerson ) { +#endif + if( around[i]->Type->CanAttack && + IsAllied(unit->Player,around[i]) ) { ChangeUnitOwner(unit,unit->Player,around[i]->Player); // FIXME: more races? if( unit->Player->Race==PlayerRaceHuman ) {