(svn r24282) -Codechange: Add AddVehicleAdviceNewsItem function to preemptively deduplicate code.
This commit is contained in:
@@ -3771,11 +3771,7 @@ static bool TrainLocoHandler(Train *v, bool mode)
|
||||
/* Show message to player. */
|
||||
if (_settings_client.gui.lost_vehicle_warn && v->owner == _local_company) {
|
||||
SetDParam(0, v->index);
|
||||
AddVehicleNewsItem(
|
||||
STR_NEWS_TRAIN_IS_STUCK,
|
||||
NS_ADVICE,
|
||||
v->index
|
||||
);
|
||||
AddVehicleAdviceNewsItem(STR_NEWS_TRAIN_IS_STUCK, v->index);
|
||||
}
|
||||
v->wait_counter = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user