(svn r3757) -Feature: Delete news items about vehicles, when they get stale

This is used to delete
- all news about a vehicle, when it gets deleted
- "vehicle has stopped in depot" news, when it gets started
- "vehicle has invalid orders" news, when the orders get changed
This commit is contained in:
tron
2006-03-04 11:01:35 +00:00
parent f383a038f0
commit 332b54d5a6
8 changed files with 86 additions and 3 deletions

View File

@@ -536,6 +536,8 @@ void DeleteVehicle(Vehicle *v)
Vehicle *u;
bool has_artic_part = false;
DeleteVehicleNews(v->index, INVALID_STRING_ID);
do {
u = v->next;
has_artic_part = EngineHasArticPart(v);