From 9529e46a8c3b5bb7d206747a591642db90bb2525 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Fri, 6 Oct 2023 18:01:00 -0500 Subject: [PATCH] Fix allied repair --- src/mapgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapgrid.cpp b/src/mapgrid.cpp index 921df58dcac..2f6cb804396 100644 --- a/src/mapgrid.cpp +++ b/src/mapgrid.cpp @@ -196,7 +196,7 @@ struct ConditionDroidCandidateForRepair { if (obj->type != OBJ_DROID) return false; const DROID *psDroid = (const DROID*) obj; - const bool isOwnOrAlly = psDroid->player == player && aiCheckAlliances(psDroid->player, player); + const bool isOwnOrAlly = psDroid->player == player || aiCheckAlliances(psDroid->player, player); const bool isVTOL = asPropulsionStats[psDroid->asBits[COMP_PROPULSION]].propulsionType == PROPULSION_TYPE_LIFT; // either it's a ground unit, or it's a VTOL on ground const bool isOnGround = (!isVTOL) || (isVTOL && (psDroid->sMove.Status == MOVEINACTIVE && psDroid->sMove.iVertSpeed == 0));