summaryrefslogtreecommitdiff
path: root/src/game/unit_nest.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-01 14:04:53 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-01 14:04:53 +0200
commit020e91ca69f35329eae518f3fe92afba2e117d06 (patch)
treee7205023072b5d3a6bba4806c9663a7be469184f /src/game/unit_nest.cpp
parent2c8e84a3d2fe93f84d0ffca63967e81a03534c00 (diff)
Remove the fear mechanic.
Diffstat (limited to 'src/game/unit_nest.cpp')
-rw-r--r--src/game/unit_nest.cpp6
1 files changed, 3 insertions, 3 deletions
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)