diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-27 19:11:45 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-27 19:11:45 +0200 |
commit | cda9ce6c56951d56282d809ea2ad071f7dfb101f (patch) | |
tree | e22bcd836813055b572f97a542c4a53a3e352c32 | |
parent | e74b8aaed02d29e93eb7454c4659a01728799da2 (diff) |
Fix selection.
-rw-r--r-- | src/game/game.cpp | 2 |
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(); |