Skip to content

Commit

Permalink
Fixed issue: damaged droids should never have their group until "do o…
Browse files Browse the repository at this point in the history
…r die" flag is set
  • Loading branch information
Monsterovich committed Jul 15, 2024
1 parent dfeeb80 commit 8e4fb92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/droid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,8 @@ void droidUpdate(DROID *psDroid)
if (psDroid->repairGroup != UBYTE_MAX &&
psDroid->order.type != DORDER_RTR &&
psDroid->order.type != DORDER_RTR_SPECIFIED &&
psDroid->order.type != DORDER_RTB)
psDroid->order.type != DORDER_RTB &&
secondaryGetState(psDroid, DSO_REPAIR_LEVEL) == DSS_REPLEV_NEVER)
{
droidWasFullyRepairedBase(psDroid);
}
Expand Down

0 comments on commit 8e4fb92

Please sign in to comment.