Fixed randomization on Windows platform

master
Stefan Jahn 3 years ago
parent 3a11f81658
commit 8447b59b0f

@ -206,11 +206,15 @@ Simulation::Simulation() {
void Simulation::Reset() { void Simulation::Reset() {
int i; int i;
static int first = 1;
LockMutex(); LockMutex();
if(first) {
time_t t = time(NULL); time_t t = time(NULL);
srand (t); srand (t);
first = 0;
}
// //
// object movement // object movement

Loading…
Cancel
Save