From 748df17934f2614811df7ed374f1ab48083f9933 Mon Sep 17 00:00:00 2001
From: KJeff01 <kjeff1997@gmail.com>
Date: Fri, 15 Mar 2024 13:20:35 -0500
Subject: [PATCH] Prevent scouting/patrol allowing CB droids observing
 something

Telling a CB unit to patrol/scout would allow CB droids to observe stuff like a regular sensor for a moment.
---
 src/order.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/order.cpp b/src/order.cpp
index 0c7afcf43e5..73036d827ac 100644
--- a/src/order.cpp
+++ b/src/order.cpp
@@ -628,7 +628,7 @@ void orderUpdateDroid(DROID *psDroid)
 					}
 					break;
 				case DROID_SENSOR:
-					if (attack)
+					if (!cbSensorDroid(psDroid) && attack)
 					{
 						actionDroid(psDroid, DACTION_OBSERVE, psObj);
 					}