summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-19 11:47:31 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-19 11:47:31 +0100
commit31919da4452d02a399fe10c79a2bad90e52fd200 (patch)
tree83e06ffa0c4ef588e22ca19909e0874be2f4b5f5 /src
parentf37b490bc7b0ed020d388755f890505033da7bdc (diff)
Don't spawn spiders in water.
Diffstat (limited to 'src')
-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 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;