summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:55:43 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:55:43 +0000
commitb0cb2054fae07a688174d6b78fd310c986233de3 (patch)
treecc6f480fc2a1f7c0fc0b3de7226d352f5c005f85 /src/game/units.cpp
parent2d0ca20e5f8775960e1e93add81876ed6fa26707 (diff)
Drastically reduce the number of awake entities.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 24b9567..ef7fc6f 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -277,7 +277,6 @@ unit_soldier_t::unit_soldier_t(game::state_t *game) : unit_t(game, UNIT_SOLDIER)
name = text::get(text::UNIT_NAME_SOLDIER);
- ignore_waking = true; // Always awake.
wake();
friendly = true;
controllable = true;
@@ -484,6 +483,8 @@ unit_spider_t::unit_spider_t(game::state_t *game) : unit_t(game, UNIT_SPIDER)
name = text::get(text::UNIT_NAME_SPIDER);
+ ignore_waking = false;
+
health = max_health = 4;
cs.armor_class = 15;
cs.hit_die = die_t(3, 6);
@@ -564,6 +565,8 @@ unit_nest_t::unit_nest_t(game::state_t *game_) : unit_t(game_, UNIT_NEST)
name = text::get(text::UNIT_NAME_NEST);
+ ignore_waking = false;
+
health = max_health = 45;
cs.armor_class = 5;