summaryrefslogtreecommitdiff
path: root/src/rail.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-08 16:48:29 +0000
committersmatz <smatz@openttd.org>2008-05-08 16:48:29 +0000
commit386a3f1d208a67af646da9a0bedba375858f822c (patch)
tree4102a7e524984bc47f14e70bc388938ea0c957c7 /src/rail.h
parent4a11ebe76fcaba45954aa2b6f29e6e75a8c30942 (diff)
downloadopenttd-386a3f1d208a67af646da9a0bedba375858f822c.tar.xz
(svn r13016) -Codechange: unify the detection if rail catenary should be drawn
Diffstat (limited to 'src/rail.h')
-rw-r--r--src/rail.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/rail.h b/src/rail.h
index 07ccb5204..331674f30 100644
--- a/src/rail.h
+++ b/src/rail.h
@@ -11,7 +11,7 @@
#include "gfx_type.h"
#include "core/bitmath_func.hpp"
#include "economy_func.h"
-#include "tile_cmd.h"
+#include "slope_type.h"
enum RailTypeFlag {
RTF_CATENARY = 0, ///< Set if the rail type should have catenary drawn
@@ -198,29 +198,8 @@ void DrawDefaultWaypointSprite(int x, int y, RailType railtype);
void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data);
int TicksToLeaveDepot(const Vehicle *v);
-
-/**
- * Test if a rail type has catenary
- * @param rt Rail type to test
- */
-static inline bool HasCatenary(RailType rt)
-{
- return HasBit(GetRailTypeInfo(rt)->flags, RTF_CATENARY);
-}
-
-
-/**
- * Draws overhead wires and pylons for electric railways.
- * @param ti The TileInfo struct of the tile being drawn
- * @see DrawCatenaryRailway
- */
-void DrawCatenary(const TileInfo *ti);
-void DrawCatenaryOnTunnel(const TileInfo *ti);
-void DrawCatenaryOnBridge(const TileInfo *ti);
-
Foundation GetRailFoundation(Slope tileh, TrackBits bits);
-int32 SettingsDisableElrail(int32 p1); ///< _patches.disable_elrail callback
/**
* Finds out if a Player has a certain railtype available