From c0531bd165643c8482e00ea04297498474be113e Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 16 Dec 2017 22:47:41 +0000 Subject: Fix nests spawning spiders in walls. --- src/game/units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') 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; -- cgit