mirror of https://github.com/OpenTTD/OpenTTD
(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number
parent
47137cefb7
commit
f5ea31b9da
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue