diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:09:54 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:09:54 +0100 |
commit | 2bae146672c49e8d9c3a514119c6980eef6f9f86 (patch) | |
tree | a7d33fb967a0087d04b5ee7447c05c58cd2c20a2 /src/game/interface.cpp | |
parent | 84716e9d1e5a73b7ab013385fc0b49964563bb2b (diff) |
Fix selection being drawn in screen space.
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r-- | src/game/interface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp index a367607..a9832b2 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -142,12 +142,12 @@ void state_t::render_to(render::state_t *render) size_t w = window->getSize().x, h = window->getSize().y; v2f_t x; - window->setView(sf::View(sf::FloatRect(0, 0, w, h))); - em = std::min(w, h) * 0.04; - if (select.selecting) render->render_hlrect(select.rect, sf::Color(200, 100, 50)); + window->setView(sf::View(sf::FloatRect(0, 0, w, h))); + em = std::min(w, h) * 0.04; + for (auto i = log.begin(); i != log.end(); ) { if (i->time + 3 < game->now) i = log.erase(i); |