diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
commit | 4625695653c3c0be16b61b640c206c557af9ec7b (patch) | |
tree | d480693e848eb121add7037faa150875d750cc98 /src/elrail_func.h | |
parent | 6ea832ec7cbd572c72e96a179bb8c744834ee2e7 (diff) | |
download | openttd-4625695653c3c0be16b61b640c206c557af9ec7b.tar.xz |
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
Diffstat (limited to 'src/elrail_func.h')
-rw-r--r-- | src/elrail_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail_func.h b/src/elrail_func.h index c65be6fa5..bf3e41632 100644 --- a/src/elrail_func.h +++ b/src/elrail_func.h @@ -25,7 +25,7 @@ static inline bool HasCatenary(RailType rt) */ static inline bool HasCatenaryDrawn(RailType rt) { - return HasCatenary(rt) && !IsInvisibilitySet(TO_CATENARY) && !_patches.disable_elrails; + return HasCatenary(rt) && !IsInvisibilitySet(TO_CATENARY) && !_settings.vehicle.disable_elrails; } /** @@ -37,6 +37,6 @@ void DrawCatenary(const TileInfo *ti); void DrawCatenaryOnTunnel(const TileInfo *ti); void DrawCatenaryOnBridge(const TileInfo *ti); -int32 SettingsDisableElrail(int32 p1); ///< _patches.disable_elrail callback +int32 SettingsDisableElrail(int32 p1); ///< _settings.disable_elrail callback #endif /* ELRAIL_FUNC_H */ |