summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-02-25 17:38:11 +0000
committerPeterN <peter@fuzzle.org>2019-03-31 17:22:54 +0100
commitf0336f1f170ae4ef3a3bb98435b33807fbadad7a (patch)
treecb4cfb48a85c61a9baef432f82683ab7f7a7ac32 /src
parentf656f5e8eb8835aad2ad19ca9ade253666b17089 (diff)
downloadopenttd-f0336f1f170ae4ef3a3bb98435b33807fbadad7a.tar.xz
Codechange: Remove ship max order distance from script API.
Diffstat (limited to 'src')
-rw-r--r--src/script/api/script_engine.cpp3
-rw-r--r--src/script/api/script_vehicle.cpp3
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;