diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:41:52 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-19 13:41:52 +0100 |
commit | def701e42a40a1d95c3195be0c07d9b7b71cdd1d (patch) | |
tree | 2026fd15d6bf38d3323ecbf5ed71a61b016929bb /src/game/units.cpp | |
parent | 139779aecad253155d90ee1a68403dece48a3a02 (diff) |
Automatic camera following.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index 4e2b2aa..da6b1a3 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -431,6 +431,8 @@ void unit_soldier_t::on_think(void) void unit_soldier_t::on_death(void) { + game->selected_units.erase(this); + render_size[0] = v2f_t(-0.75f, -0.5f); render_size[1] = v2f_t(+0.75f, +0.5f); render_layer = -1; |