diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj --- a/projects/openttd_vs100.vcxproj +++ b/projects/openttd_vs100.vcxproj @@ -388,6 +388,7 @@ + @@ -429,7 +430,6 @@ - diff --git a/projects/openttd_vs100.vcxproj.filters b/projects/openttd_vs100.vcxproj.filters --- a/projects/openttd_vs100.vcxproj.filters +++ b/projects/openttd_vs100.vcxproj.filters @@ -384,6 +384,9 @@ Header Files + + Header Files + Header Files @@ -507,9 +510,6 @@ Header Files - - Header Files - Header Files diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj --- a/projects/openttd_vs80.vcproj +++ b/projects/openttd_vs80.vcproj @@ -827,6 +827,10 @@ > + + @@ -991,10 +995,6 @@ > - - diff --git a/projects/openttd_vs90.vcproj b/projects/openttd_vs90.vcproj --- a/projects/openttd_vs90.vcproj +++ b/projects/openttd_vs90.vcproj @@ -824,6 +824,10 @@ > + + @@ -988,10 +992,6 @@ > - - diff --git a/source.list b/source.list --- a/source.list +++ b/source.list @@ -121,6 +121,7 @@ cargopacket.h cargotype.h cheat_func.h cheat_type.h +clear_func.h cmd_helper.h command_func.h command_type.h @@ -162,7 +163,6 @@ fileio_func.h fileio_type.h fios.h fontcache.h -functions.h gamelog.h gamelog_internal.h genworld.h diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -15,7 +15,7 @@ #include "landscape.h" #include "genworld.h" #include "landscape_type.h" -#include "functions.h" +#include "clear_func.h" #include "economy_func.h" #include "viewport_func.h" #include "water.h" diff --git a/src/clear_func.h b/src/clear_func.h new file mode 100644 --- /dev/null +++ b/src/clear_func.h @@ -0,0 +1,22 @@ +/* $Id$ */ + +/* + * This file is part of OpenTTD. + * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. + * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see . + */ + +/** @file clear_func.h Functions related to clear (MP_CLEAR) land. */ + +#ifndef CLEAR_FUNC_H +#define CLEAR_FUNC_H + +#include "tile_cmd.h" + +void DrawHillyLandTile(const TileInfo *ti); +void DrawClearLandTile(const TileInfo *ti, byte set); +void DrawClearLandFence(const TileInfo *ti); +void TileLoopClearHelper(TileIndex tile); + +#endif /* CLEAR_FUNC_H */ diff --git a/src/functions.h b/src/functions.h deleted file mode 100644 --- a/src/functions.h +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ */ - -/* - * This file is part of OpenTTD. - * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. - * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see . - */ - -/** @file functions.h Some generic functions that actually shouldn't be here. */ - -#ifndef FUNCTIONS_H -#define FUNCTIONS_H - -#include "tile_cmd.h" - -/* clear_land.cpp */ -void DrawHillyLandTile(const TileInfo *ti); -void DrawClearLandTile(const TileInfo *ti, byte set); -void DrawClearLandFence(const TileInfo *ti); -void TileLoopClearHelper(TileIndex tile); - -#endif /* FUNCTIONS_H */ diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -18,7 +18,7 @@ #include "bridge_map.h" #include "genworld.h" #include "autoslope.h" -#include "functions.h" +#include "clear_func.h" #include "water.h" #include "window_func.h" #include "company_gui.h" diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -29,7 +29,7 @@ #include "water.h" #include "station_gui.h" #include "strings_func.h" -#include "functions.h" +#include "clear_func.h" #include "window_func.h" #include "date_func.h" #include "vehicle_func.h" diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -19,7 +19,7 @@ #include "town.h" #include "genworld.h" #include "transparency.h" -#include "functions.h" +#include "clear_func.h" #include "company_func.h" #include "sound_func.h" #include "water_map.h" diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -29,7 +29,7 @@ #include "tunnelbridge_map.h" #include "strings_func.h" #include "date_func.h" -#include "functions.h" +#include "clear_func.h" #include "vehicle_func.h" #include "sound_func.h" #include "tunnelbridge.h"