summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-23 14:38:09 +0000
committertron <tron@openttd.org>2005-10-23 14:38:09 +0000
commit355d834c6e46da64250be8903a32fbe141257065 (patch)
tree8bd905f4b54709b9558349b81b55185adca6c84f
parent181d586a7c13a296a1b9355e15e55dda7ac0fcb2 (diff)
downloadopenttd-355d834c6e46da64250be8903a32fbe141257065.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.c2
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;