From 6da976c195a355aa481e0a7d27d21795610c997d Mon Sep 17 00:00:00 2001 From: Saurtron Date: Wed, 18 Dec 2024 12:22:29 +0100 Subject: [PATCH] Make all immobiles have no radar drift. --- rts/Sim/Units/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rts/Sim/Units/Unit.cpp b/rts/Sim/Units/Unit.cpp index 9f1ec62fbd..c5ea6ee424 100644 --- a/rts/Sim/Units/Unit.cpp +++ b/rts/Sim/Units/Unit.cpp @@ -555,7 +555,7 @@ float3 CUnit::GetErrorVector(int argAllyTeam) const const int atSightMask = losStatus[argAllyTeam]; const int isVisible = 2 * ((atSightMask & LOS_INLOS ) != 0 || teamHandler.Ally(argAllyTeam, allyteam)); // in LOS or allied, no error - const int seenGhost = 4 * ((atSightMask & LOS_PREVLOS) != 0 && gameSetup->ghostedBuildings && unitDef->IsBuildingUnit()); // seen ghosted building, no error + const int seenGhost = 4 * ((atSightMask & LOS_PREVLOS) != 0 && gameSetup->ghostedBuildings && unitDef->IsImmobileUnit()); // seen ghosted immobiles, no error const int isOnRadar = 8 * ((atSightMask & LOS_INRADAR) != 0 ); // current radar contact float errorMult = 0.0f;