Skip to content

Commit

Permalink
Make all immobiles have no radar drift.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Dec 18, 2024
1 parent 34671c0 commit 6da976c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Units/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6da976c

Please sign in to comment.