summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-17 13:46:42 +0000
committerludde <ludde@openttd.org>2005-07-17 13:46:42 +0000
commit2fd162b8ddd7f511ffd04e96a9c173696ca999f6 (patch)
treea244e165eb3a65013c1973c1ec87f3478135f57b /roadveh_cmd.c
parent62011eed95fcd374c2debbc177612e9685926666 (diff)
downloadopenttd-2fd162b8ddd7f511ffd04e96a9c173696ca999f6.tar.xz
(svn r2604) Fix: removed unused variable
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index c79fd9c01..c8e27e013 100644
--- a/roadveh_cmd.c
+++ b/roadveh_cmd.c
@@ -1634,11 +1634,9 @@ void OnNewDay_RoadVeh(Vehicle *v)
/* update destination */
if (v->current_order.type == OT_GOTO_STATION && !(v->vehstatus & VS_CRASHED)) {
- int num;
RoadStopType type = (v->cargo_type == CT_PASSENGERS) ? RS_BUS : RS_TRUCK;
st = GetStation(v->current_order.station);
- num = GetNumRoadStops(st, type);
//Current slot has expired
if ( (v->u.road.slot_age++ <= 0) && (v->u.road.slot != NULL))