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
5 changes: 3 additions & 2 deletions Core/GameEngine/Source/Common/System/Radar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,9 @@ 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 dx = m_event[i].worldLoc.x - pos->x;
const Real dy = m_event[i].worldLoc.y - pos->y;
Comment thread
Caball009 marked this conversation as resolved.
Outdated
const Real distSquared = dx * dx + dy * dy;

if( distSquared <= closeEnoughDistanceSq )
{
Expand Down
Loading