diff options
author | rubidium <rubidium@openttd.org> | 2008-04-18 21:49:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-18 21:49:38 +0000 |
commit | 7e5639ccea74f36d85b465ef93b0cdb9f135c4e4 (patch) | |
tree | 92ccb2f516619d9f9a117d750c144fb6c3c478db /src/openttd.cpp | |
parent | 6813a17d15c511c0c1c3800688d6bea3632f8dda (diff) | |
download | openttd-7e5639ccea74f36d85b465ef93b0cdb9f135c4e4.tar.xz |
(svn r12779) -Codechange: remove a few constants from openttd.h.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index cf4e23a37..82bd359f6 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -258,8 +258,8 @@ static void ParseResolution(int res[2], const char *s) return; } - res[0] = Clamp(strtoul(s, NULL, 0), 64, MAX_SCREEN_WIDTH); - res[1] = Clamp(strtoul(t + 1, NULL, 0), 64, MAX_SCREEN_HEIGHT); + res[0] = max(strtoul(s, NULL, 0), 64UL); + res[1] = max(strtoul(t + 1, NULL, 0), 64UL); } static void InitializeDynamicVariables() |