diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-12 22:55:53 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-12 22:55:53 +0200 |
commit | f274f281da32c829e20c5012d67431d6a4348cce (patch) | |
tree | 3baf16ef66e39d998f928c6c15d92d76aae3b386 /src/game | |
parent | 445505ada572fbf7be3ce474a1af31419ff68c2b (diff) |
Highlight selected buildings.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/units.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index e266782..f777400 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -67,6 +67,9 @@ void unit_t::render_to(render::state_t *render) sf::Color::White); } + if (selected == selection_cookie && type != UNIT_SOLDIER) + render->render_hlrect(render_bounds, sf::Color::Green); + if (debug_AI) { v2f_t text_pos; float height; |