diff options
author | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
commit | 96030141026ded3f892510ff9e3643319f27ebd8 (patch) | |
tree | e6e7475076685c561a7d1ff9e1161dbdc56d5f8b /src/script/api/script_basestation.cpp | |
parent | 1dbd59e6ab9a917214d98c53a8ab8ca5b0d47223 (diff) | |
download | openttd-96030141026ded3f892510ff9e3643319f27ebd8.tar.xz |
(svn r26307) -Add: [nogo] Allow GS to hide story page date
Diffstat (limited to 'src/script/api/script_basestation.cpp')
-rw-r--r-- | src/script/api/script_basestation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/api/script_basestation.cpp b/src/script/api/script_basestation.cpp index d46d717a0..5134243a9 100644 --- a/src/script/api/script_basestation.cpp +++ b/src/script/api/script_basestation.cpp @@ -52,9 +52,9 @@ return ::BaseStation::Get(station_id)->xy; } -/* static */ int32 ScriptBaseStation::GetConstructionDate(StationID station_id) +/* static */ ScriptDate::Date ScriptBaseStation::GetConstructionDate(StationID station_id) { - if (!IsValidBaseStation(station_id)) return -1; + if (!IsValidBaseStation(station_id)) return ScriptDate::DATE_INVALID; - return ::BaseStation::Get(station_id)->build_date; + return (ScriptDate::Date)::BaseStation::Get(station_id)->build_date; } |