summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-02-07 19:01:56 +0000
committermatthijs <matthijs@openttd.org>2005-02-07 19:01:56 +0000
commita3d2b0e66dc41a15871fe6c3b326355ed346a47c (patch)
tree5e8c31850285a1f74e7eea2e616e6a666006a9f0 /npf.c
parent4867f6b234d93452908b9ae1e4805e22a40f9559 (diff)
downloadopenttd-a3d2b0e66dc41a15871fe6c3b326355ed346a47c.tar.xz
(svn r1843) - Codechange: [NPF] Removed some unused code.
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/npf.c b/npf.c
index f9e041c01..9fd33c190 100644
--- a/npf.c
+++ b/npf.c
@@ -596,7 +596,6 @@ NPFFoundTargetData NPFRouteToDepotTrialError(TileIndex tile, byte trackdir, Tran
* for ships, since the heuristic will not be to far off then. I hope.
*/
Queue depots;
- TileType tiletype = 0;
int r;
NPFFoundTargetData best_result;
NPFFoundTargetData result;
@@ -605,17 +604,6 @@ NPFFoundTargetData NPFRouteToDepotTrialError(TileIndex tile, byte trackdir, Tran
Depot* current;
Depot *depot;
-
- /* This is a little ugly, but it works :-S */
- if (type == TRANSPORT_ROAD)
- tiletype = MP_STREET;
- else if (type == TRANSPORT_RAIL)
- tiletype = MP_RAILWAY;
- else if (type == TRANSPORT_WATER)
- tiletype = MP_WATER;
- else
- assert(0);
-
init_InsSort(&depots);
/* Okay, let's find all depots that we can use first */
FOR_ALL_DEPOTS(depot) {