(svn r1867) Include tables/sprites.h only in files which need it
authortron
Sun, 13 Feb 2005 11:18:02 +0000
changeset 1363 775a7ee52369
parent 1362 bceb3c57353d
child 1364 238934514bfd
(svn r1867) Include tables/sprites.h only in files which need it
airport_gui.c
dock_gui.c
landscape.c
main_gui.c
misc_gui.c
network_gui.c
order_gui.c
player_gui.c
rail_cmd.c
rail_gui.c
road_gui.c
settings_gui.c
spritecache.c
station_cmd.c
terraform_gui.c
town_gui.c
ttd.h
tunnelbridge_cmd.c
vehicle_gui.c
viewport.c
water_cmd.c
widget.c
--- a/airport_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/airport_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "window.h"
--- a/dock_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/dock_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "window.h"
--- a/landscape.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/landscape.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/main_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/main_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/misc_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/misc_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/network_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/network_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -2,6 +2,7 @@
 #include "ttd.h"
 #include "string.h"
 #include "strings.h"
+#include "table/sprites.h"
 #include "network.h"
 #include "saveload.h"
 
--- a/order_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/order_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "tile.h"
--- a/player_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/player_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "window.h"
 #include "gui.h"
--- a/rail_cmd.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/rail_cmd.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "gfx.h"
 #include "map.h"
--- a/rail_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/rail_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "tile.h"
--- a/road_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/road_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "tile.h"
--- a/settings_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/settings_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/spritecache.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/spritecache.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/station_cmd.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/station_cmd.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/terraform_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/terraform_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "window.h"
 #include "gui.h"
--- a/town_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/town_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/ttd.h	Sun Feb 13 09:42:49 2005 +0000
+++ b/ttd.h	Sun Feb 13 11:18:02 2005 +0000
@@ -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
--- a/tunnelbridge_cmd.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/tunnelbridge_cmd.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "tile.h"
--- a/vehicle_gui.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/vehicle_gui.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/viewport.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/viewport.c	Sun Feb 13 11:18:02 2005 +0000
@@ -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"
--- a/water_cmd.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/water_cmd.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "map.h"
 #include "tile.h"
--- a/widget.c	Sun Feb 13 09:42:49 2005 +0000
+++ b/widget.c	Sun Feb 13 11:18:02 2005 +0000
@@ -1,5 +1,6 @@
 #include "stdafx.h"
 #include "ttd.h"
+#include "table/sprites.h"
 #include "table/strings.h"
 #include "window.h"
 #include "gfx.h"