diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:07:08 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:07:08 +0100 |
commit | 84716e9d1e5a73b7ab013385fc0b49964563bb2b (patch) | |
tree | c53ca133f9774b49fb601961cf954cbf4aa6b133 | |
parent | 5835b156f57ec4778521c013f813d1223c7fd2f6 (diff) |
Dead soldiers aren't ready for orders.
-rw-r--r-- | src/game/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 826f9e5..48f852f 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -56,7 +56,7 @@ void state_t::select(rectf_t x) if (unit->type != unit_t::UNIT_HUMAN) continue; - if (unit->selected != old_cookie) + if (!unit->dead && unit->selected != old_cookie) unit->say(text::get(text::SAY_READY)); unit->selected = selection_cookie; |