diff options
author | ludde <ludde@openttd.org> | 2005-07-29 22:13:04 +0000 |
---|---|---|
committer | ludde <ludde@openttd.org> | 2005-07-29 22:13:04 +0000 |
commit | 24986e9144a20a08c59b4d84dd35fc746b00bd19 (patch) | |
tree | 2e7ed92288591fd60a06902fb726c3b3a12409ee /rail.h | |
parent | bb1e1f2b5f8f75dfe4b4026445a70a720b46ee8d (diff) | |
download | openttd-24986e9144a20a08c59b4d84dd35fc746b00bd19.tar.xz |
(svn r2756) Renamed railtypes into _railtypes
Renamed railtypes.c into railtypes.h, all other tables are in .h files. (It should be in the tables dir but I couldn't figure out how to get it there without deleting it first).
Added const and extern.
Diffstat (limited to 'rail.h')
-rw-r--r-- | rail.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -161,7 +161,7 @@ typedef struct RailtypeInfo { byte compatible_railtypes; } RailtypeInfo; -RailtypeInfo railtypes[RAILTYPE_END]; +extern const RailtypeInfo _railtypes[RAILTYPE_END]; // these are the maximums used for updating signal blocks, and checking if a depot is in a pbs block enum { @@ -528,10 +528,10 @@ static inline TransportType GetCrossingTransportType(TileIndex tile, Track track * @param railtype the rail type which the information is requested for * @return The pointer to the RailtypeInfo */ -static inline RailtypeInfo *GetRailTypeInfo(RailType railtype) +static inline const RailtypeInfo *GetRailTypeInfo(RailType railtype) { assert(railtype < RAILTYPE_END); - return &railtypes[railtype]; + return &_railtypes[railtype]; } /** |