diff options
author | peter1138 <peter1138@openttd.org> | 2019-02-25 17:38:11 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-31 17:22:54 +0100 |
commit | f0336f1f170ae4ef3a3bb98435b33807fbadad7a (patch) | |
tree | cb4cfb48a85c61a9baef432f82683ab7f7a7ac32 /src/script/api | |
parent | f656f5e8eb8835aad2ad19ca9ade253666b17089 (diff) | |
download | openttd-f0336f1f170ae4ef3a3bb98435b33807fbadad7a.tar.xz |
Codechange: Remove ship max order distance from script API.
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_engine.cpp | 3 | ||||
-rw-r--r-- | src/script/api/script_vehicle.cpp | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/script/api/script_engine.cpp b/src/script/api/script_engine.cpp index 1fe16321b..c564cee97 100644 --- a/src/script/api/script_engine.cpp +++ b/src/script/api/script_engine.cpp @@ -256,9 +256,6 @@ if (!IsValidEngine(engine_id)) return 0; switch (GetVehicleType(engine_id)) { - case ScriptVehicle::VT_WATER: - return _settings_game.pf.pathfinder_for_ships != VPF_NPF ? 129 : 0; - case ScriptVehicle::VT_AIR: return ::Engine::Get(engine_id)->GetRange() * ::Engine::Get(engine_id)->GetRange(); diff --git a/src/script/api/script_vehicle.cpp b/src/script/api/script_vehicle.cpp index 46fae0a91..f5023d12c 100644 --- a/src/script/api/script_vehicle.cpp +++ b/src/script/api/script_vehicle.cpp @@ -472,9 +472,6 @@ const ::Vehicle *v = ::Vehicle::Get(vehicle_id); switch (v->type) { - case VEH_SHIP: - return _settings_game.pf.pathfinder_for_ships != VPF_NPF ? 129 : 0; - case VEH_AIRCRAFT: return ::Aircraft::From(v)->acache.cached_max_range_sqr; |