summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--airport_gui.c1
-rw-r--r--dock_gui.c1
-rw-r--r--landscape.c1
-rw-r--r--main_gui.c1
-rw-r--r--misc_gui.c1
-rw-r--r--network_gui.c1
-rw-r--r--order_gui.c1
-rw-r--r--player_gui.c1
-rw-r--r--rail_cmd.c1
-rw-r--r--rail_gui.c1
-rw-r--r--road_gui.c1
-rw-r--r--settings_gui.c1
-rw-r--r--spritecache.c1
-rw-r--r--station_cmd.c1
-rw-r--r--terraform_gui.c1
-rw-r--r--town_gui.c1
-rw-r--r--ttd.h4
-rw-r--r--tunnelbridge_cmd.c1
-rw-r--r--vehicle_gui.c1
-rw-r--r--viewport.c1
-rw-r--r--water_cmd.c1
-rw-r--r--widget.c1
22 files changed, 21 insertions, 4 deletions
diff --git a/airport_gui.c b/airport_gui.c
index 7757b8ac9..f807ed2ee 100644
--- a/airport_gui.c
+++ b/airport_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "window.h"
diff --git a/dock_gui.c b/dock_gui.c
index cc59fd1f9..ae7ee3b46 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "window.h"
diff --git a/landscape.c b/landscape.c
index e406c76fa..e3cb79a5c 100644
--- a/landscape.c
+++ b/landscape.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "map.h"
#include "spritecache.h"
+#include "table/sprites.h"
#include "tile.h"
#include <stdarg.h>
#include "gfx.h"
diff --git a/main_gui.c b/main_gui.c
index 37af61068..a6be5e26a 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "spritecache.h"
#include "strings.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/misc_gui.c b/misc_gui.c
index c24197fdf..8ec60e4a0 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -3,6 +3,7 @@
#include "debug.h"
#include "spritecache.h"
#include "strings.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "window.h"
diff --git a/network_gui.c b/network_gui.c
index 1dc06c0f4..d2f1bd345 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "string.h"
#include "strings.h"
+#include "table/sprites.h"
#include "network.h"
#include "saveload.h"
diff --git a/order_gui.c b/order_gui.c
index b0d88d03e..ebc51c93f 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/player_gui.c b/player_gui.c
index dbe25ea34..c4910b327 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "window.h"
#include "gui.h"
diff --git a/rail_cmd.c b/rail_cmd.c
index 845d6d8d0..0c22b0048 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "gfx.h"
#include "map.h"
diff --git a/rail_gui.c b/rail_gui.c
index a49ded5ca..8ad66440d 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/road_gui.c b/road_gui.c
index 2c3158c1e..b7efcebd3 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/settings_gui.c b/settings_gui.c
index 2aee5f886..4db938056 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "string.h"
#include "strings.h" // XXX GetCurrentCurrencyRate()
+#include "table/sprites.h"
#include "table/strings.h"
#include "window.h"
#include "gui.h"
diff --git a/spritecache.c b/spritecache.c
index bcf9ec4d3..ada918bb3 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -3,6 +3,7 @@
#include "debug.h"
#include "gfx.h"
#include "spritecache.h"
+#include "table/sprites.h"
#include "fileio.h"
#include "newgrf.h"
#include "md5.h"
diff --git a/station_cmd.c b/station_cmd.c
index c4d9854b2..d60f4acaf 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "ttd.h"
#include "debug.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/terraform_gui.c b/terraform_gui.c
index 440cd9691..0221786e8 100644
--- a/terraform_gui.c
+++ b/terraform_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "window.h"
#include "gui.h"
diff --git a/town_gui.c b/town_gui.c
index 8b4cb6f1b..f55c4d2ed 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "debug.h"
#include "strings.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "town.h"
#include "window.h"
diff --git a/ttd.h b/ttd.h
index 1928e5099..71b968376 100644
--- a/ttd.h
+++ b/ttd.h
@@ -1,10 +1,6 @@
#ifndef TTD_H
#define TTD_H
-// FIXME: Include only where really needed.
-// include sprites
-#include "table/sprites.h"
-
#ifndef VARDEF
#define VARDEF extern
#endif
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 95cc74dc7..a639bc673 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 2a932380d..1254c6f41 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -2,6 +2,7 @@
#include "ttd.h"
#include "debug.h"
#include "strings.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "vehicle.h"
#include "window.h"
diff --git a/viewport.c b/viewport.c
index 726a053a1..96b3bb177 100644
--- a/viewport.c
+++ b/viewport.c
@@ -3,6 +3,7 @@
#include "debug.h"
#include "spritecache.h"
#include "strings.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "viewport.h"
diff --git a/water_cmd.c b/water_cmd.c
index 263a482bd..05f48e0be 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/widget.c b/widget.c
index cba4b3cc6..6add3e7ff 100644
--- a/widget.c
+++ b/widget.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "ttd.h"
+#include "table/sprites.h"
#include "table/strings.h"
#include "window.h"
#include "gfx.h"