diff --git a/src/world/mapgen.c b/src/world/mapgen.c index f00075d8fd..0c84fc72c3 100644 --- a/src/world/mapgen.c +++ b/src/world/mapgen.c @@ -14,7 +14,9 @@ *****************************************************************************/ #pragma endregion -#include +#include "../common.h" +#include + #include "../object.h" #include "../util/util.h" #include "map.h" @@ -122,7 +124,7 @@ void mapgen_generate(mapgen_settings *settings) int x, y, mapSize, floorTexture, wallTexture, waterLevel; rct_map_element *mapElement; - util_srand((unsigned int)time(NULL)); + util_srand((int)SDL_GetTicks()); mapSize = settings->mapSize; floorTexture = settings->floor;