1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 22:49:09 +00:00

(svn r3758) Remove the news validation callback. It is superseded by r3757.

This commit is contained in:
tron
2006-03-04 11:15:44 +00:00
parent 4270026b42
commit 87fdb129d2
8 changed files with 21 additions and 78 deletions

View File

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