OldPos
is set to m_Pos
in line 260
m_Pos
is not modified in between line 260 and 272 (only m_Core.m_Pos
gets modified)
Dir = m_Pos - OldPos
is always vec2(0.0, 0.0)
.
Center = OldPos + Dir * 0.5 = OldPos
.
OldPos
to FindEntities
in line 272. Using OldPos
here instead of m_Pos
makes it clear, that we use the position before the move, even though m_Pos
still holds the old value....6691be1
Run unit tests with sanitizers (fixes #6205) - def-
c633905
Address comment from https://github.com/ddnet/ddnet/pull/6206/ - def-
21b3b3b
Merge #6207 - bors[bot]