summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-28 16:38:18 +0000
committerrubidium <rubidium@openttd.org>2008-03-28 16:38:18 +0000
commitff3a4014042ed5743457705262c102074fce900b (patch)
treeafd17cc80ba9a09caa79d9b9ac766d83be7b3be3 /src
parent0f552a88a71455910b454f2fd8e5b36f4f66f541 (diff)
downloadopenttd-ff3a4014042ed5743457705262c102074fce900b.tar.xz
(svn r12472) -Codechange: remove unneeded declaration of ViewPort and DrawPixelInfo.
Diffstat (limited to 'src')
-rw-r--r--src/openttd.h2
-rw-r--r--src/texteff.hpp2
-rw-r--r--src/vehicle_func.h2
-rw-r--r--src/vehicle_gui.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/openttd.h b/src/openttd.h
index 6d6c670eb..884c472bc 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -10,8 +10,6 @@
// Forward declarations of structs.
struct Waypoint;
-struct ViewPort;
-struct DrawPixelInfo;
typedef byte LandscapeID;
typedef uint16 EngineID;
typedef uint16 UnitID;
diff --git a/src/texteff.hpp b/src/texteff.hpp
index e05af98d2..4911d43f4 100644
--- a/src/texteff.hpp
+++ b/src/texteff.hpp
@@ -3,6 +3,8 @@
#ifndef TEXTEFF_HPP
#define TEXTEFF_HPP
+#include "gfx_type.h"
+
/**
* Text effect modes.
*/
diff --git a/src/vehicle_func.h b/src/vehicle_func.h
index 874e8910d..affd3948a 100644
--- a/src/vehicle_func.h
+++ b/src/vehicle_func.h
@@ -50,8 +50,6 @@ StringID VehicleInTheWayErrMsg(const Vehicle* v);
Vehicle *FindVehicleBetween(TileIndex from, TileIndex to, byte z, bool without_crashed = false);
Vehicle *GetVehicleTunnelBridge(TileIndex tile, TileIndex endtile);
-Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y);
-
void DecreaseVehicleValue(Vehicle *v);
void CheckVehicleBreakdown(Vehicle *v);
void AgeVehicle(Vehicle *v);
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index e62c67ddf..9c28d1b41 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -101,4 +101,6 @@ static inline uint GetVehicleListHeight(VehicleType type)
/* Unified window procedure */
void ShowVehicleViewWindow(const Vehicle *v);
+Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y);
+
#endif /* VEHICLE_GUI_H */