summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-04-22 07:39:52 +0100
committerPeterN <peter@fuzzle.org>2019-04-29 17:40:22 +0100
commit931d32f4145e36ef08b432314353ff9f058f6a08 (patch)
tree7503cca488e8d3453adeb0e69fc51a609649f1a0 /src/script/api
parent10ba431d21f58c707398f95b99faf3c2aac77e77 (diff)
downloadopenttd-931d32f4145e36ef08b432314353ff9f058f6a08.tar.xz
Codechange: Remove RailTypeByte type
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_rail.cpp2
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);
}