summaryrefslogtreecommitdiff
path: root/src/game/units.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-16 22:47:41 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-16 22:47:41 +0000
commitc0531bd165643c8482e00ea04297498474be113e (patch)
tree02e7b85b1b62bdab1a1d7b35f0668195d4e1e3cd /src/game/units.cpp
parent38edebe4bdeb8caedccf6127a86fddfe9c5808a8 (diff)
Fix nests spawning spiders in walls.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r--src/game/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 49ae050..583dd11 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -439,7 +439,7 @@ void spawn_spider(game::state_t *game, v2f_t nest)
x = nest + offset * (game->dice_prng.next_float() * 0.2 + 0.4);
cmodel.bounds = rectf_t(v2f_t(-0.5f, -0.5f), v2f_t(0.5f, 0.5f)) + x;
- cmodel.cflags = CF_BODY_SMALL;
+ cmodel.cflags = CF_SOLID | CF_BODY_SMALL;
if (game->world.test_rect(&cmodel, NULL))
continue;