From f5ea31b9daa2fa9c290df3903cd37acd02e2345d Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 23 Oct 2005 14:38:09 +0000 Subject: (svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number --- roadveh_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 73887f6a2..a5a405982 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -798,7 +798,7 @@ static Vehicle *RoadVehFindCloseTo(Vehicle *v, int x, int y, byte dir) static void RoadVehArrivesAt(Vehicle *v, Station *st) { - if (v->engine_type < 123) { + if (v->cargo_type == CT_PASSENGERS) { /* Check if station was ever visited before */ if (!(st->had_vehicle_of_type & HVOT_BUS)) { uint32 flags; -- cgit v1.2.3-70-g09d2