Skip to content

Commit

Permalink
Fix allied repair
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeff01 committed Oct 8, 2023
1 parent 4cfce4d commit 9529e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapgrid.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 9529e46

Please sign in to comment.