diff --git a/misc_gui.c b/misc_gui.c index 5fa581367e..241e9ae1a8 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -15,6 +15,11 @@ #include "sound.h" #include "network.h" +// Windows stuff for Clipboard +#if defined(WIN32) +#include +#endif + #include "hal.h" // for file list bool _query_string_active; @@ -700,7 +705,7 @@ static void DrawStationCoverageText(const uint *accepts, int str_x, int str_y, u if (b == &_userstring[3]) { b[0] = 0x81; - b[1] = STR_00D0_NOTHING; + b[1] = (char)STR_00D0_NOTHING; b[2] = STR_00D0_NOTHING >> 8; b[3] = 0; } else { diff --git a/network.h b/network.h index 322bec0667..ae55d541ac 100644 --- a/network.h +++ b/network.h @@ -1,6 +1,7 @@ #ifndef NETWORK_H #define NETWORK_H +#include "network_core.h" #define NOREV_STRING "norev000" #ifdef ENABLE_NETWORK diff --git a/network_data.h b/network_data.h index 18a0a2a1b8..1210ca8f5f 100644 --- a/network_data.h +++ b/network_data.h @@ -3,7 +3,6 @@ #include "ttd.h" #include "network.h" -#include "network_core.h" // Is the network enabled? #ifdef ENABLE_NETWORK diff --git a/station_gui.c b/station_gui.c index 14d93c21d6..90a547c72e 100644 --- a/station_gui.c +++ b/station_gui.c @@ -420,7 +420,7 @@ static void DrawStationViewWindow(Window *w) if (b == &_userstring[3]) { b[0] = 0x81; - b[1] = STR_00D0_NOTHING; + b[1] = (char)STR_00D0_NOTHING; b[2] = STR_00D0_NOTHING >> 8; b[3] = 0; } else { diff --git a/ttd.vcproj b/ttd.vcproj index 648c7aab8b..931d9cdf74 100644 --- a/ttd.vcproj +++ b/ttd.vcproj @@ -314,7 +314,7 @@ - + @@ -861,6 +861,9 @@ BasicRuntimeChecks="3"/> + +