Skip to content
Merged
Changes from 4 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
3 changes: 1 addition & 2 deletions Core/GameEngine/Source/Common/System/Radar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,7 @@ Bool Radar::tryEvent( RadarEventType event, const Coord3D *pos )
{

// get distance from our new event location to this event location in 2D
Real distSquared = m_event[ i ].worldLoc.x - pos->x * m_event[ i ].worldLoc.x - pos->x +
Comment thread
johnneijzen marked this conversation as resolved.
m_event[ i ].worldLoc.y - pos->y * m_event[ i ].worldLoc.y - pos->y;
const Real distSquared = sqr(m_event[ i ].worldLoc.x - pos->x) + sqr(m_event[ i ].worldLoc.y - pos->y);
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated

if( distSquared <= closeEnoughDistanceSq )
{
Expand Down
Loading