From ca0862c3f4baf73549326ec2ec63ac0630cf2c95 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 4 Mar 2006 11:15:44 +0000 Subject: (svn r3758) Remove the news validation callback. It is superseded by r3757. --- train_cmd.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index cf2450bc2..843bb29ac 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -3272,12 +3272,6 @@ void Train_Tick(Vehicle *v) static const byte _depot_track_ind[4] = {0,1,0,1}; -// Validation for the news item "Train is waiting in depot" -static bool ValidateTrainInDepot( uint data_a, uint data_b ) -{ - Vehicle *v = GetVehicle(data_a); - return (v->u.rail.track == 0x80 && (v->vehstatus | VS_STOPPED)); -} void TrainEnterDepot(Vehicle *v, TileIndex tile) { @@ -3310,12 +3304,12 @@ void TrainEnterDepot(Vehicle *v, TileIndex tile) v->vehstatus |= VS_STOPPED; if (v->owner == _local_player) { SetDParam(0, v->unitnumber); - AddValidatedNewsItem( + AddNewsItem( STR_8814_TRAIN_IS_WAITING_IN_DEPOT, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, - 0, - ValidateTrainInDepot); + 0 + ); } } } @@ -3403,7 +3397,7 @@ void OnNewDay_Train(Vehicle *v) 0); } - CheckOrders(v->index, OC_INIT); + CheckOrders(v); /* update destination */ if (v->current_order.type == OT_GOTO_STATION && -- cgit v1.2.3-54-g00ecf