summaryrefslogtreecommitdiff
path: root/src/game/game.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/game.cpp
parent2c8e84a3d2fe93f84d0ffca63967e81a03534c00 (diff)
Remove the fear mechanic.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 27db5e5..d82cff0 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -300,7 +300,7 @@ void state_t::tick(ntime_t time_)
while (frames_since_t0 < target) {
// FIXME: Is this non-deterministic enough?
- dice_prng.seed(dice_prng.next() ^ time);
+ prng.seed(prng.next() ^ time);
// setting up old variables (refactor them out eventually)
now = time * 1.0e-9;
@@ -388,34 +388,6 @@ void state_t::compute_ambience(render::state_t *render)
}
}
-die_t::die_t(size_t sides_)
-{
- sides = sides_;
-}
-
-die_t::die_t(size_t count_, size_t sides_)
-{
- count = count_;
- sides = sides_;
-}
-
-die_t::die_t(size_t count_, size_t sides_, size_t bonus_)
-{
- count = count_;
- sides = sides_;
- bonus = bonus_;
-}
-
-size_t state_t::roll(die_t die)
-{
- size_t total = 0;
-
- for (size_t i = 0; i < die.count; i++)
- total += dice_prng.next() % die.sides + 1;
-
- return total + die.bonus;
-}
-
bool load_assets(void)
{
assets::load();