diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:40:11 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-14 18:40:11 +0100 |
commit | b914d67b4e683c2d3e43c1854d6ef48b1878e4b6 (patch) | |
tree | b91f8e74db15f597b3c86b2f86f16062eeffdf1f /src/game/game.cpp | |
parent | 2bae146672c49e8d9c3a514119c6980eef6f9f86 (diff) |
Allow humans to shoot.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 48f852f..5067df7 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -129,7 +129,8 @@ void state_t::tick(double now_, double dt_) (*i)->sleep(); i = awake_units.erase(i); } else { - (*i)->think(); + if (!(*i)->dead) + (*i)->think(); i++; } } |