summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;