--- a/src/openttd.cpp Thu Apr 17 08:40:01 2008 +0000
+++ b/src/openttd.cpp Fri Apr 18 23:33:51 2008 +0000
@@ -47,7 +47,6 @@
#include "network/network.h"
#include "signs_base.h"
#include "signs_func.h"
-#include "depot.h"
#include "waypoint.h"
#include "ai/ai.h"
#include "train.h"
@@ -59,6 +58,7 @@
#include "strings_func.h"
#include "date_func.h"
#include "vehicle_func.h"
+#include "cheat_func.h"
#include "newgrf.h"
#include "newgrf_config.h"
@@ -86,6 +86,8 @@
#include "table/strings.h"
+StringID _switch_mode_errorstr;
+
void CallLandscapeTick();
void IncreaseDate();
void DoPaletteAnimations();
@@ -264,8 +266,8 @@
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()
@@ -1884,7 +1886,7 @@
}
/* Clear PBS reservation on track */
- if (!IsTileDepotType(t, TRANSPORT_RAIL)) {
+ if (!IsRailDepotTile(t)) {
SB(_m[t].m4, 4, 4, 0);
} else {
ClrBit(_m[t].m3, 6);