1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number

This commit is contained in:
tron
2005-10-23 14:38:09 +00:00
parent 47137cefb7
commit f5ea31b9da

View File

@@ -798,7 +798,7 @@ static Vehicle *RoadVehFindCloseTo(Vehicle *v, int x, int y, byte dir)
static void RoadVehArrivesAt(Vehicle *v, Station *st) 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 */ /* Check if station was ever visited before */
if (!(st->had_vehicle_of_type & HVOT_BUS)) { if (!(st->had_vehicle_of_type & HVOT_BUS)) {
uint32 flags; uint32 flags;