diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 14:44:07 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 14:44:07 +0200 |
commit | ff5f57514e172e3344d6d50fce6bd8ea84e7f32b (patch) | |
tree | c3988d3d4b12ee37770ed026425bfa7b07f84dba /src/FastRandom.cpp | |
parent | Enchanted books generate in MineShafts chests (diff) | |
download | cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.gz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.bz2 cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.lz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.xz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.zst cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.zip |
Diffstat (limited to 'src/FastRandom.cpp')
-rw-r--r-- | src/FastRandom.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/FastRandom.cpp b/src/FastRandom.cpp index 052d976da..42bf5f3f9 100644 --- a/src/FastRandom.cpp +++ b/src/FastRandom.cpp @@ -90,17 +90,10 @@ int cFastRandom::m_SeedCounter = 0; -cFastRandom::cFastRandom(int a_Seed) : +cFastRandom::cFastRandom(void) : + m_Seed(m_SeedCounter++), m_Counter(0) { - if (a_Seed == -1) - { - m_Seed = m_SeedCounter++; - } - else - { - m_Seed = a_Seed; - } } |