summaryrefslogtreecommitdiff
path: root/src/game/unit_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/unit_builder.cpp')
-rw-r--r--src/game/unit_builder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/unit_builder.cpp b/src/game/unit_builder.cpp
index 801639e..231101a 100644
--- a/src/game/unit_builder.cpp
+++ b/src/game/unit_builder.cpp
@@ -49,6 +49,8 @@ unit_builder_t::unit_builder_t(game::state_t *game) : unit_t(game, UNIT_BUILDER)
controllable = true;
health = max_health = 45;
+
+ game->num_builders++;
}
void unit_builder_t::command_stop(void)
@@ -247,6 +249,7 @@ void unit_builder_t::on_death(void)
place(world, x);
controllable = false;
move_marker.reset();
+ game->num_builders--;
}
void unit_builder_t::render_to(render::state_t *render)