Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Core/GameEngine/Source/Common/System/Radar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,14 @@
// get distance from our new event location to this event location in 2D
const Real distSquared = sqr(m_event[ i ].worldLoc.x - pos->x) + sqr(m_event[ i ].worldLoc.y - pos->y);

if( distSquared <= closeEnoughDistanceSq )
Bool isClose = distSquared <= closeEnoughDistanceSq;
#if PRESERVE_RETAIL_BEHAVIOR
// TheSuperHackers @tweak Preserve retail map-wide suppression for under attack events
// because otherwise they trigger way too frequent from cargo planes.
isClose |= event == RADAR_EVENT_UNDER_ATTACK;

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-debug+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-profile+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-debug+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6-releaselog+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build GeneralsMD / vc6+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence

Check warning on line 1195 in Core/GameEngine/Source/Common/System/Radar.cpp

View workflow job for this annotation

GitHub Actions / Build Generals / vc6-profile+t+e

'|' : check operator precedence for possible error; use parentheses to clarify precedence
Comment thread
githubawn marked this conversation as resolved.
Outdated
#endif

if( isClose )
{

// finally only reject making a new event of this existing one is "recent enough"
Comment thread
githubawn marked this conversation as resolved.
Expand Down
Loading