diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 22:47:41 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 22:47:41 +0000 |
commit | c0531bd165643c8482e00ea04297498474be113e (patch) | |
tree | 02e7b85b1b62bdab1a1d7b35f0668195d4e1e3cd /src/game | |
parent | 38edebe4bdeb8caedccf6127a86fddfe9c5808a8 (diff) |
Fix nests spawning spiders in walls.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/units.cpp | 2 |
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; |