diff options
author | Aki <please@ignore.pl> | 2022-05-17 19:32:50 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-17 19:32:50 +0200 |
commit | e9115c36c3580b209f7b53692deb52905125256e (patch) | |
tree | 24a0e83042a8cb961efe68a28bb5c918aa88faa3 | |
parent | 405563345e30b757829b3411b0f33cb166793ad7 (diff) | |
download | derelict-e9115c36c3580b209f7b53692deb52905125256e.zip derelict-e9115c36c3580b209f7b53692deb52905125256e.tar.gz derelict-e9115c36c3580b209f7b53692deb52905125256e.tar.bz2 |
Changed mouse pos constness
-rw-r--r-- | View.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ View::update(const float dt) const auto wrecks = m_grids.at(m_grid).wrecks; m_labels.clear(); m_labels.reserve(wrecks.size()); - auto mouse = GetMousePosition(); + const auto mouse = GetMousePosition(); for (const auto& wreck : wrecks) { const auto pos = GetWorldToScreen(wreck.position, m_camera); const auto base = GetWorldToScreen({wreck.position.x, 0.0f, wreck.position.z}, m_camera); |