diff options
author | tron <tron@openttd.org> | 2005-10-23 14:38:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-23 14:38:09 +0000 |
commit | f5ea31b9daa2fa9c290df3903cd37acd02e2345d (patch) | |
tree | 8bd905f4b54709b9558349b81b55185adca6c84f | |
parent | 47137cefb72d3b3d3bc6fdefc7a4b103429f6d46 (diff) | |
download | openttd-f5ea31b9daa2fa9c290df3903cd37acd02e2345d.tar.xz |
(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number
-rw-r--r-- | roadveh_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |