From 301b209b87246417dc556ecbec33bb7a8e563c16 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 15 Apr 2025 14:53:29 +0200 Subject: [PATCH] Fix: [NewGRF] Roadstop animation/randomisation was not triggered on vehicle arrival. (#14003) --- src/roadveh_cmd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 069c4fbbb7..b56e8b772d 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -37,6 +37,7 @@ #include "framerate_type.h" #include "roadveh_cmd.h" #include "road_cmd.h" +#include "newgrf_roadstop.h" #include "table/strings.h" @@ -1453,6 +1454,8 @@ again: v->last_station_visited = st->index; RoadVehArrivesAt(v, st); v->BeginLoading(); + TriggerRoadStopRandomisation(st, v->tile, RSRT_VEH_ARRIVES); + TriggerRoadStopAnimation(st, v->tile, SAT_TRAIN_ARRIVES); } return false; } @@ -1515,6 +1518,8 @@ again: if (IsDriveThroughStopTile(v->tile) || (v->current_order.IsType(OT_GOTO_STATION) && v->current_order.GetDestination() == st->index)) { RoadVehArrivesAt(v, st); v->BeginLoading(); + TriggerRoadStopRandomisation(st, v->tile, RSRT_VEH_ARRIVES); + TriggerRoadStopAnimation(st, v->tile, SAT_TRAIN_ARRIVES); return false; } } else {