Commit bd68750c authored by mercury233's avatar mercury233

working without pre_seed

parent a695de23
...@@ -540,11 +540,6 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) { ...@@ -540,11 +540,6 @@ void SingleDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
rh.base.version = PRO_VERSION; rh.base.version = PRO_VERSION;
rh.base.flag = REPLAY_UNIFORM; rh.base.flag = REPLAY_UNIFORM;
rh.base.start_time = (uint32_t)std::time(nullptr); rh.base.start_time = (uint32_t)std::time(nullptr);
#ifdef YGOPRO_SERVER_MODE
if(pre_seed_specified[duel_count])
memcpy(rh.seed_sequence, pre_seed[duel_count], SEED_COUNT * sizeof(uint32_t));
else
#endif
for (auto& x : rh.seed_sequence) for (auto& x : rh.seed_sequence)
x = rd(); x = rd();
mtrandom rnd(rh.seed_sequence, SEED_COUNT); mtrandom rnd(rh.seed_sequence, SEED_COUNT);
......
...@@ -516,11 +516,6 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) { ...@@ -516,11 +516,6 @@ void TagDuel::TPResult(DuelPlayer* dp, unsigned char tp) {
rh.base.version = PRO_VERSION; rh.base.version = PRO_VERSION;
rh.base.flag = REPLAY_UNIFORM | REPLAY_TAG; rh.base.flag = REPLAY_UNIFORM | REPLAY_TAG;
rh.base.start_time = (uint32_t)std::time(nullptr); rh.base.start_time = (uint32_t)std::time(nullptr);
#ifdef YGOPRO_SERVER_MODE
if(pre_seed_specified[duel_count])
memcpy(rh.seed_sequence, pre_seed[duel_count], SEED_COUNT * sizeof(uint32_t));
else
#endif
for (auto& x : rh.seed_sequence) for (auto& x : rh.seed_sequence)
x = rd(); x = rd();
mtrandom rnd(rh.seed_sequence, SEED_COUNT); mtrandom rnd(rh.seed_sequence, SEED_COUNT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment