From 31919da4452d02a399fe10c79a2bad90e52fd200 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 11:47:31 +0100 Subject: Don't spawn spiders in water. --- 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 ed40e9b..50b3639 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -584,7 +584,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_SOLID | CF_BODY_SMALL; + cmodel.cflags = CF_SOLID | CF_WATER | CF_BODY_SMALL; if (game->world.test_rect(&cmodel, NULL)) continue; -- cgit