summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-27 19:11:45 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-27 19:11:45 +0200
commitcda9ce6c56951d56282d809ea2ad071f7dfb101f (patch)
treee22bcd836813055b572f97a542c4a53a3e352c32
parente74b8aaed02d29e93eb7454c4659a01728799da2 (diff)
Fix selection.
-rw-r--r--src/game/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index c585314..ae2dff7 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -128,6 +128,8 @@ void state_t::select(rectf_t rect, int type)
bool select_one;
std::list<world::entity_t*> ents;
+ rect = rect.norm();
+
if (type == SELECT_NEW) {
selection_cookie++;
selected_units.clear();