summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
committerskidd13 <skidd13@openttd.org>2008-06-27 17:46:43 +0000
commit0a178274e279d0f2737c870e366529b42c7edd73 (patch)
tree36a4da60f2a4bc2eec04719a969772bbbe90137d /src/genworld_gui.cpp
parent54333f5f06fb96ff23aa422f3bde3934083e968d (diff)
downloadopenttd-0a178274e279d0f2737c870e366529b42c7edd73.tar.xz
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index e080973f8..bb15a9327 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -473,11 +473,11 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
EventState state;
this->HandleEditBoxKey(GLAND_RANDOM_EDITBOX, key, keycode, state);
/* the seed is unsigned, therefore atoi cannot be used.
- * As 2^32 - 1 (MAX_UVALUE(uint32)) is a 'magic' value
+ * As 2^32 - 1 (UINT32_MAX) is a 'magic' value
* (use random seed) it should not be possible to be
* entered into the input field; the generate seed
* button can be used instead. */
- _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, 10), MAX_UVALUE(uint32) - 1);
+ _settings_newgame.game_creation.generation_seed = minu(strtoul(this->edit_str_buf, NULL, 10), UINT32_MAX - 1);
return state;
}