summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ai_build.c1
-rw-r--r--ai_new.c1
-rw-r--r--ai_old.c1
-rw-r--r--ai_pathfinder.c1
-rw-r--r--aircraft_cmd.c1
-rw-r--r--aircraft_gui.c1
-rw-r--r--airport_gui.c1
-rw-r--r--bridge_gui.c1
-rw-r--r--callback_table.h2
-rw-r--r--clear_cmd.c1
-rw-r--r--command.c1
-rw-r--r--console.c1
-rw-r--r--debug.c1
-rw-r--r--dedicated.c1
-rw-r--r--depot.c1
-rw-r--r--disaster_cmd.c1
-rw-r--r--dock_gui.c1
-rw-r--r--dummy_land.c1
-rw-r--r--economy.c1
-rw-r--r--engine.c1
-rw-r--r--engine_gui.c1
-rw-r--r--fileio.c1
-rw-r--r--gfx.c1
-rw-r--r--graph_gui.c1
-rw-r--r--industry_cmd.c1
-rw-r--r--industry_gui.c1
-rw-r--r--intro_gui.c1
-rw-r--r--landscape.c1
-rw-r--r--main_gui.c1
-rw-r--r--misc.c1
-rw-r--r--misc_cmd.c1
-rw-r--r--misc_gui.c1
-rw-r--r--music_gui.c1
-rw-r--r--network.c2
-rw-r--r--network_client.c1
-rw-r--r--network_data.c1
-rw-r--r--network_gui.c2
-rw-r--r--network_server.c1
-rw-r--r--newgrf.c1
-rw-r--r--news_gui.c1
-rw-r--r--npf.c1
-rw-r--r--oldloader.c1
-rw-r--r--openttd.c1
-rw-r--r--openttd.h2
-rw-r--r--order_cmd.c1
-rw-r--r--order_gui.c1
-rw-r--r--pathfind.c1
-rw-r--r--pbs.c2
-rw-r--r--player_gui.c1
-rw-r--r--players.c1
-rw-r--r--pool.c1
-rw-r--r--rail_cmd.c1
-rw-r--r--rail_gui.c1
-rw-r--r--road_cmd.c1
-rw-r--r--road_gui.c1
-rw-r--r--roadveh_cmd.c1
-rw-r--r--roadveh_gui.c1
-rw-r--r--saveload.c1
-rw-r--r--screenshot.c1
-rw-r--r--sdl.c1
-rw-r--r--settings.c1
-rw-r--r--settings_gui.c1
-rw-r--r--ship_cmd.c1
-rw-r--r--ship_gui.c1
-rw-r--r--signs.c1
-rw-r--r--smallmap_gui.c1
-rw-r--r--sound.c1
-rw-r--r--spritecache.c1
-rw-r--r--station_cmd.c1
-rw-r--r--station_gui.c1
-rw-r--r--strings.c1
-rw-r--r--subsidy_gui.c1
-rw-r--r--terraform_gui.c1
-rw-r--r--texteff.c1
-rw-r--r--town_cmd.c1
-rw-r--r--town_gui.c1
-rw-r--r--train_cmd.c1
-rw-r--r--train_gui.c1
-rw-r--r--tree_cmd.c1
-rw-r--r--tunnelbridge_cmd.c1
-rw-r--r--unix.c1
-rw-r--r--unmovable_cmd.c1
-rw-r--r--vehicle.c1
-rw-r--r--vehicle_gui.c1
-rw-r--r--viewport.c1
-rw-r--r--water_cmd.c1
-rw-r--r--waypoint.c1
-rw-r--r--widget.c1
-rw-r--r--win32.c1
-rw-r--r--window.c1
90 files changed, 91 insertions, 4 deletions
diff --git a/ai_build.c b/ai_build.c
index 121b9fee0..370189af8 100644
--- a/ai_build.c
+++ b/ai_build.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "command.h"
diff --git a/ai_new.c b/ai_new.c
index ec122ba1f..d1e7f4a2c 100644
--- a/ai_new.c
+++ b/ai_new.c
@@ -18,6 +18,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/ai_old.c b/ai_old.c
index 95ac10111..d93ee6c28 100644
--- a/ai_old.c
+++ b/ai_old.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "player.h"
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index cee7a6e6b..c754b89b4 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "command.h"
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index d5f9d061b..0ed5a4354 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/aircraft_gui.c b/aircraft_gui.c
index b38a7244f..00a2f030b 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
diff --git a/airport_gui.c b/airport_gui.c
index a1cd6e0c0..5af423ba6 100644
--- a/airport_gui.c
+++ b/airport_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "window.h"
#include "gui.h"
diff --git a/bridge_gui.c b/bridge_gui.c
index 47401c538..d4b899e58 100644
--- a/bridge_gui.c
+++ b/bridge_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "window.h"
#include "gui.h"
diff --git a/callback_table.h b/callback_table.h
index f3540521d..83deb9c95 100644
--- a/callback_table.h
+++ b/callback_table.h
@@ -1,6 +1,8 @@
#ifndef CALLBACK_TABLE_H
#define CALLBACK_TABLE_H
+#include "functions.h"
+
extern CommandCallback *_callback_table[];
extern const int _callback_table_count;
diff --git a/clear_cmd.c b/clear_cmd.c
index 34ea9e0f7..25b7e96e5 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "player.h"
#include "tile.h"
diff --git a/command.c b/command.c
index df5099a28..cb2baa10e 100644
--- a/command.c
+++ b/command.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "gui.h"
#include "command.h"
diff --git a/console.c b/console.c
index 959d54bb9..76fb56d67 100644
--- a/console.c
+++ b/console.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "gfx.h"
diff --git a/debug.c b/debug.c
index 9987c2822..4573efc65 100644
--- a/debug.c
+++ b/debug.c
@@ -4,6 +4,7 @@
#include "openttd.h"
#include "console.h"
#include "debug.h"
+#include "functions.h"
#include "string.h"
int _debug_ai_level;
diff --git a/dedicated.c b/dedicated.c
index cd99dfbbb..99c5c3e10 100644
--- a/dedicated.c
+++ b/dedicated.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "network.h"
#include "hal.h"
diff --git a/depot.c b/depot.c
index d62e2afdf..236612a0e 100644
--- a/depot.c
+++ b/depot.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "depot.h"
+#include "functions.h"
#include "tile.h"
#include "map.h"
#include "table/strings.h"
diff --git a/disaster_cmd.c b/disaster_cmd.c
index 371c69710..78046cdc9 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/dock_gui.c b/dock_gui.c
index 53a9cb75f..f28cf8818 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "window.h"
#include "station.h"
diff --git a/dummy_land.c b/dummy_land.c
index 9f668ff08..9102244b4 100644
--- a/dummy_land.c
+++ b/dummy_land.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "viewport.h"
#include "command.h"
diff --git a/economy.c b/economy.c
index 6ebd81e9a..76540b0f0 100644
--- a/economy.c
+++ b/economy.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "strings.h" // XXX InjectDParam()
#include "table/strings.h"
#include "map.h"
diff --git a/engine.c b/engine.c
index 1c4f544b3..aefa407d8 100644
--- a/engine.c
+++ b/engine.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "engine.h"
#include "table/engines.h"
diff --git a/engine_gui.c b/engine_gui.c
index 9cbcdb5d3..35807d4a1 100644
--- a/engine_gui.c
+++ b/engine_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "viewport.h"
diff --git a/fileio.c b/fileio.c
index e13a73ead..6d46b511a 100644
--- a/fileio.c
+++ b/fileio.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "fileio.h"
+#include "functions.h"
#include "macros.h"
#include "variables.h"
#if defined(UNIX) || defined(__OS2__)
diff --git a/gfx.c b/gfx.c
index 22ff3f943..47cc39cc9 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "player.h"
#include "spritecache.h"
#include "strings.h"
diff --git a/graph_gui.c b/graph_gui.c
index 527830b60..f9849f5d9 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "gfx.h"
diff --git a/industry_cmd.c b/industry_cmd.c
index f368122c9..e5041d759 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "viewport.h"
diff --git a/industry_gui.c b/industry_gui.c
index db2d016e1..9fe49b2d6 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "strings.h"
#include "table/strings.h"
#include "table/sprites.h"
diff --git a/intro_gui.c b/intro_gui.c
index f81e129f7..48fa67284 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "viewport.h"
diff --git a/landscape.c b/landscape.c
index cae2a1427..055029397 100644
--- a/landscape.c
+++ b/landscape.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "map.h"
#include "player.h"
#include "spritecache.h"
diff --git a/main_gui.c b/main_gui.c
index e4d42f715..f5ccb6ef4 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "spritecache.h"
#include "strings.h"
#include "table/sprites.h"
diff --git a/misc.c b/misc.c
index daf8169c8..7579578f4 100644
--- a/misc.c
+++ b/misc.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "string.h"
#include "strings.h" // XXX GetParam*
#include "table/strings.h"
diff --git a/misc_cmd.c b/misc_cmd.c
index b5958a20a..a3539f8ea 100644
--- a/misc_cmd.c
+++ b/misc_cmd.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "string.h"
#include "table/strings.h"
#include "command.h"
diff --git a/misc_gui.c b/misc_gui.c
index cd277e837..cbe7a71be 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "saveload.h"
#include "spritecache.h"
#include "strings.h"
diff --git a/music_gui.c b/music_gui.c
index 0c5731d82..6d1689104 100644
--- a/music_gui.c
+++ b/music_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "gfx.h"
diff --git a/network.c b/network.c
index 2265795c3..e02391a7c 100644
--- a/network.c
+++ b/network.c
@@ -1,5 +1,7 @@
#include "stdafx.h"
+#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "string.h"
#include "strings.h"
#include "map.h"
diff --git a/network_client.c b/network_client.c
index 2288f9b05..43478e81c 100644
--- a/network_client.c
+++ b/network_client.c
@@ -7,6 +7,7 @@
#ifdef ENABLE_NETWORK
#include "table/strings.h"
+#include "functions.h"
#include "network_client.h"
#include "network_gamelist.h"
#include "saveload.h"
diff --git a/network_data.c b/network_data.c
index 02cecfc06..6462144d3 100644
--- a/network_data.c
+++ b/network_data.c
@@ -5,6 +5,7 @@
// Is the network enabled?
#ifdef ENABLE_NETWORK
+#include "functions.h"
#include "string.h"
#include "table/strings.h"
#include "network_client.h"
diff --git a/network_gui.c b/network_gui.c
index a1ae21cae..5cd906737 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -10,13 +10,13 @@
#ifdef ENABLE_NETWORK
#include "table/strings.h"
+#include "functions.h"
#include "network_data.h"
#include "network_gamelist.h"
#include "window.h"
#include "gui.h"
#include "gfx.h"
#include "command.h"
-#include "functions.h"
#include "variables.h"
#include "network_server.h"
#include "network_udp.h"
diff --git a/network_server.c b/network_server.c
index ff0f05094..b8a91bcaf 100644
--- a/network_server.c
+++ b/network_server.c
@@ -7,6 +7,7 @@
#ifdef ENABLE_NETWORK
#include "table/strings.h"
+#include "functions.h"
#include "network_server.h"
#include "network_udp.h"
#include "console.h"
diff --git a/newgrf.c b/newgrf.c
index 66e15af15..ffd007506 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -6,6 +6,7 @@
#include "debug.h"
#include "gfx.h"
#include "fileio.h"
+#include "functions.h"
#include "engine.h"
#include "station.h"
#include "sprite.h"
diff --git a/news_gui.c b/news_gui.c
index c9d919aff..91cb41329 100644
--- a/news_gui.c
+++ b/news_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "strings.h"
#include "table/sprites.h"
#include "table/strings.h"
diff --git a/npf.c b/npf.c
index a1f5e52df..6bbaefcf2 100644
--- a/npf.c
+++ b/npf.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "npf.h"
#include "aystar.h"
#include "macros.h"
diff --git a/oldloader.c b/oldloader.c
index 8dc1b1ae0..585975956 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "town.h"
#include "industry.h"
diff --git a/openttd.c b/openttd.c
index 5e1a91e06..d69209179 100644
--- a/openttd.c
+++ b/openttd.c
@@ -9,6 +9,7 @@
#define VARDEF
#include "openttd.h"
+#include "functions.h"
#include "mixer.h"
#include "spritecache.h"
#include "gfx.h"
diff --git a/openttd.h b/openttd.h
index 912b0aea1..215a12719 100644
--- a/openttd.h
+++ b/openttd.h
@@ -547,6 +547,4 @@ enum {
};
VARDEF byte _no_scroll;
-#include "functions.h"
-
#endif /* OPENTTD_H */
diff --git a/order_cmd.c b/order_cmd.c
index 8ec6afb08..7b925c5cd 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "airport.h"
#include "depot.h"
+#include "functions.h"
#include "table/strings.h"
#include "vehicle.h"
#include "waypoint.h"
diff --git a/order_gui.c b/order_gui.c
index f0dd46538..cdfc95bec 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "window.h"
diff --git a/pathfind.c b/pathfind.c
index 737b6d36d..b0e3f6cf2 100644
--- a/pathfind.c
+++ b/pathfind.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "pathfind.h"
diff --git a/pbs.c b/pbs.c
index 53711a75b..4cfa2d9f5 100644
--- a/pbs.c
+++ b/pbs.c
@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
-#include "pbs.h"
#include "functions.h"
+#include "pbs.h"
#include "debug.h"
#include "map.h"
#include "tile.h"
diff --git a/player_gui.c b/player_gui.c
index bd5e4cc5b..1f634727a 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "viewport.h"
diff --git a/players.c b/players.c
index 55313ada9..92b5b39c3 100644
--- a/players.c
+++ b/players.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "engine.h"
+#include "functions.h"
#include "string.h"
#include "strings.h"
#include "table/strings.h"
diff --git a/pool.c b/pool.c
index cb12311b7..16abdacf6 100644
--- a/pool.c
+++ b/pool.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "pool.h"
/**
diff --git a/rail_cmd.c b/rail_cmd.c
index 3bb1a30ca..70973b559 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
diff --git a/rail_gui.c b/rail_gui.c
index bdc474b48..11f94149d 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "window.h"
diff --git a/road_cmd.c b/road_cmd.c
index 26ef7ff8a..d9a1791aa 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/road_gui.c b/road_gui.c
index 0b3c5ebf3..df3bc9f45 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "window.h"
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 293d2004e..2ada6dd3c 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 01d9b3e8a..26f2917be 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
diff --git a/saveload.c b/saveload.c
index e6fcca30e..ae796922f 100644
--- a/saveload.c
+++ b/saveload.c
@@ -16,6 +16,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "vehicle.h"
#include "station.h"
#include "town.h"
diff --git a/screenshot.c b/screenshot.c
index c0c07dd5c..ff92ae3aa 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "strings.h"
#include "table/strings.h"
#include "gfx.h"
diff --git a/sdl.c b/sdl.c
index 26232c465..ecd06d97a 100644
--- a/sdl.c
+++ b/sdl.c
@@ -3,6 +3,7 @@
#if defined(WITH_SDL)
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "gfx.h"
#include "mixer.h"
#include "window.h"
diff --git a/settings.c b/settings.c
index 5a9b47178..c7589967d 100644
--- a/settings.c
+++ b/settings.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "screenshot.h"
#include "sound.h"
#include "spritecache.h"
diff --git a/settings_gui.c b/settings_gui.c
index 0604c9d6f..79d90d0bd 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "string.h"
#include "strings.h" // XXX GetCurrentCurrencyRate()
#include "table/sprites.h"
diff --git a/ship_cmd.c b/ship_cmd.c
index e93fd5d2e..9158b5ca9 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/ship_gui.c b/ship_gui.c
index 752bc4f53..30d962932 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "map.h"
#include "window.h"
diff --git a/signs.c b/signs.c
index c640ad2cb..2d86dd00e 100644
--- a/signs.c
+++ b/signs.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "player.h"
#include "signs.h"
#include "saveload.h"
diff --git a/smallmap_gui.c b/smallmap_gui.c
index 5890562c9..ae3482d64 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "spritecache.h"
#include "table/strings.h"
#include "table/sprites.h"
diff --git a/sound.c b/sound.c
index 071fdd17e..eb45e177a 100644
--- a/sound.c
+++ b/sound.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "map.h"
#include "mixer.h"
#include "sound.h"
diff --git a/spritecache.c b/spritecache.c
index fe5925555..7c1ddd5b4 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "gfx.h"
#include "spritecache.h"
#include "table/sprites.h"
diff --git a/station_cmd.c b/station_cmd.c
index 57e2db3d5..fdff06971 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
diff --git a/station_gui.c b/station_gui.c
index 9b5b1de22..f12c086a3 100644
--- a/station_gui.c
+++ b/station_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "strings.h"
#include "table/strings.h"
#include "window.h"
diff --git a/strings.c b/strings.c
index 77a263563..400e0a3f8 100644
--- a/strings.c
+++ b/strings.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "string.h"
#include "strings.h"
#include "table/strings.h"
diff --git a/subsidy_gui.c b/subsidy_gui.c
index f966724e1..9e7719f3d 100644
--- a/subsidy_gui.c
+++ b/subsidy_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "functions.h"
#include "window.h"
#include "gui.h"
#include "station.h"
diff --git a/terraform_gui.c b/terraform_gui.c
index 10a0c78d0..467dcad8f 100644
--- a/terraform_gui.c
+++ b/terraform_gui.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "player.h"
#include "tile.h"
#include "window.h"
diff --git a/texteff.c b/texteff.c
index e6c030813..9f9936538 100644
--- a/texteff.c
+++ b/texteff.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "strings.h"
#include "gfx.h"
#include "viewport.h"
diff --git a/town_cmd.c b/town_cmd.c
index 76ca08d97..e70fee4a3 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "strings.h"
#include "table/strings.h"
#include "table/sprites.h"
diff --git a/town_gui.c b/town_gui.c
index 23791b663..3745b7776 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "strings.h"
#include "table/sprites.h"
#include "table/strings.h"
diff --git a/train_cmd.c b/train_cmd.c
index 7b38ba072..471d15e59 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/strings.h"
#include "map.h"
#include "tile.h"
diff --git a/train_gui.c b/train_gui.c
index 2905c554d..f1094d985 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "table/sprites.h"
#include "table/strings.h"
#include "map.h"
diff --git a/tree_cmd.c b/tree_cmd.c
index 8b7e3a50c..bd0d5796f 100644
--- a/tree_cmd.c
+++ b/tree_cmd.c
@@ -3,6 +3,7 @@
#include "table/strings.h"
#include "table/sprites.h"
#include "table/tree_land.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "viewport.h"
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 250cd6277..552987c4b 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/unix.c b/unix.c
index 6dcd70be9..758a2f355 100644
--- a/unix.c
+++ b/unix.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "window.h"
#include "string.h"
#include "table/strings.h"
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 5b04328e6..ddc7702f2 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/strings.h"
#include "table/sprites.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "command.h"
diff --git a/vehicle.c b/vehicle.c
index defce52c1..21b026ce7 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -3,6 +3,7 @@
#include "spritecache.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 2cfc40a4d..5a27ad826 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "player.h"
#include "strings.h"
#include "table/sprites.h"
diff --git a/viewport.c b/viewport.c
index 48f1b8230..53547ad75 100644
--- a/viewport.c
+++ b/viewport.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "spritecache.h"
#include "strings.h"
#include "table/sprites.h"
diff --git a/water_cmd.c b/water_cmd.c
index f05bcf018..9f92c74af 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "table/sprites.h"
#include "table/strings.h"
+#include "functions.h"
#include "map.h"
#include "tile.h"
#include "vehicle.h"
diff --git a/waypoint.c b/waypoint.c
index 958dd5378..981c8c8bf 100644
--- a/waypoint.c
+++ b/waypoint.c
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "command.h"
+#include "functions.h"
#include "gfx.h"
#include "map.h"
#include "order.h"
diff --git a/widget.c b/widget.c
index 39f1b5642..52a07d96a 100644
--- a/widget.c
+++ b/widget.c
@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "openttd.h"
+#include "functions.h"
#include "player.h"
#include "table/sprites.h"
#include "table/strings.h"
diff --git a/win32.c b/win32.c
index 65cef9048..b14ff3a31 100644
--- a/win32.c
+++ b/win32.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "saveload.h"
#include "string.h"
#include "table/strings.h"
diff --git a/window.c b/window.c
index 6760be8df..41f144e92 100644
--- a/window.c
+++ b/window.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "debug.h"
+#include "functions.h"
#include "map.h"
#include "player.h"
#include "window.h"