summaryrefslogtreecommitdiff
path: root/src/genworld.h
diff options
context:
space:
mode:
authorMiguel Horta <mmiguelhorta@gmail.com>2018-10-11 00:33:37 +0100
committerOwen Rudge <owen@owenrudge.net>2018-10-11 20:22:31 +0100
commite00908f5e900ac5314930b2775eb38f91a6c4abe (patch)
tree026783fc961a05d29cba553db96d992d202b0c8f /src/genworld.h
parentfbfa4eb5920b10f57b9fc72730206f4a05c3638d (diff)
downloadopenttd-e00908f5e900ac5314930b2775eb38f91a6c4abe.tar.xz
Fix #6898: Replace atoi() with strtoul()
Normalize type and parsing of generation_seed across all files Add assert_compile() to ensure correct type
Diffstat (limited to 'src/genworld.h')
-rw-r--r--src/genworld.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld.h b/src/genworld.h
index ea3faa15f..1b1c806e0 100644
--- a/src/genworld.h
+++ b/src/genworld.h
@@ -22,7 +22,7 @@ enum LandscapeGenerator {
LG_TERRAGENESIS = 1, ///< TerraGenesis Perlin landscape generator
};
-static const uint GENERATE_NEW_SEED = UINT_MAX; ///< Create a new random seed
+static const uint32 GENERATE_NEW_SEED = UINT32_MAX; ///< Create a new random seed
/** Modes for GenerateWorld */
enum GenWorldMode {
@@ -97,7 +97,7 @@ void SetGeneratingWorldProgress(GenWorldProgress cls, uint total);
void IncreaseGeneratingWorldProgress(GenWorldProgress cls);
void PrepareGenerateWorldProgress();
void ShowGenerateWorldProgress();
-void StartNewGameWithoutGUI(uint seed);
+void StartNewGameWithoutGUI(uint32 seed);
void ShowCreateScenario();
void StartScenarioEditor();