(svn r12779) -Codechange: remove a few constants from openttd.h.

This commit is contained in:
rubidium
2008-04-18 21:49:38 +00:00
parent 14dc60c8a1
commit dde68e922a
6 changed files with 26 additions and 28 deletions

View File

@@ -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()