Fixed the problem where the same sequence of random maps was generated.

The random number generator was not seeded.
This commit is contained in:
Kristoffer Erlandsson 2004-05-28 21:18:38 +00:00
parent 56af8182f5
commit c26314b7a7

View file

@ -23,6 +23,7 @@
#include "../cursor.hpp"
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
@ -128,6 +129,7 @@ int main(int argc, char** argv)
mapdata = mapdata + "gggggggggggggggggggg\n";
}
}
std::srand(std::time(NULL));
bool done = false;
gamestatus status(cfg, 0);
std::vector<team> teams;