diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 07:39:52 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 931d32f4145e36ef08b432314353ff9f058f6a08 (patch) | |
tree | 7503cca488e8d3453adeb0e69fc51a609649f1a0 /src/script/api | |
parent | 10ba431d21f58c707398f95b99faf3c2aac77e77 (diff) | |
download | openttd-931d32f4145e36ef08b432314353ff9f058f6a08.tar.xz |
Codechange: Remove RailTypeByte type
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_rail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_rail.cpp b/src/script/api/script_rail.cpp index d4580fc32..f9495ac2d 100644 --- a/src/script/api/script_rail.cpp +++ b/src/script/api/script_rail.cpp @@ -68,7 +68,7 @@ /* static */ bool ScriptRail::IsRailTypeAvailable(RailType rail_type) { - if ((::RailType)rail_type < RAILTYPE_BEGIN || (::RailType)rail_type >= RAILTYPE_END) return false; + if ((::RailType)rail_type >= RAILTYPE_END) return false; return ScriptObject::GetCompany() == OWNER_DEITY || ::HasRailtypeAvail(ScriptObject::GetCompany(), (::RailType)rail_type); } |