summaryrefslogtreecommitdiff
path: root/src/game/unit_nest.cpp
diff options
context:
space:
mode:
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)