summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-12 22:55:53 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-12 22:55:53 +0200
commitf274f281da32c829e20c5012d67431d6a4348cce (patch)
tree3baf16ef66e39d998f928c6c15d92d76aae3b386 /src/game
parent445505ada572fbf7be3ce474a1af31419ff68c2b (diff)
Highlight selected buildings.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/units.cpp3
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;