From 020e91ca69f35329eae518f3fe92afba2e117d06 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 1 Apr 2018 14:04:53 +0200 Subject: Remove the fear mechanic. --- src/game/unit_nest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/unit_nest.cpp') diff --git a/src/game/unit_nest.cpp b/src/game/unit_nest.cpp index 326741e..9b3e1e1 100644 --- a/src/game/unit_nest.cpp +++ b/src/game/unit_nest.cpp @@ -44,8 +44,8 @@ void spawn_spider(game::state_t *game, v2f_t nest) world::cmodel_t cmodel; unit_spider_t *spider; - offset = game->dice_prng.unit_vec2(); - x = nest + offset * (game->dice_prng.next_float() * 0.2 + 0.4); + offset = game->prng.unit_vec2(); + x = nest + offset * (game->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_WATER | CF_BODY_SMALL; @@ -67,7 +67,7 @@ void unit_nest_t::on_think(void) return; spawn_spider(game, x); - next_spawning = game->now + game->dice_prng.next_float() * 10 + 5; + next_spawning = game->now + game->prng.next_float() * 10 + 5; } void unit_nest_t::on_spawn(void) -- cgit