(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
1 changed files with 1 additions and 1 deletions

View File

@ -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;