Skip to content

Commit

Permalink
Prevent scouting/patrol allowing CB droids observing something
Browse files Browse the repository at this point in the history
Telling a CB unit to patrol/scout would allow CB droids to observe stuff like a regular sensor for a moment.
  • Loading branch information
KJeff01 committed Mar 15, 2024
1 parent c41351d commit 748df17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/order.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ void orderUpdateDroid(DROID *psDroid)
}
break;
case DROID_SENSOR:
if (attack)
if (!cbSensorDroid(psDroid) && attack)
{
actionDroid(psDroid, DACTION_OBSERVE, psObj);
}
Expand Down

0 comments on commit 748df17

Please sign in to comment.