mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-22 02:24:17 +00:00
e3147ce53d
Reasoning this change is correct: * `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) * Therefore line 269 `Dir = m_Pos - OldPos` is always `vec2(0.0, 0.0)`. * And line 271 `Center = OldPos + Dir * 0.5 = OldPos`. So we can pass `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` also still holds the old value. |
||
---|---|---|
.. | ||
android | ||
antibot | ||
base | ||
engine | ||
game | ||
macos | ||
mastersrv | ||
rust-bridge | ||
steam | ||
test | ||
tools |