(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

7
news.h
View File

@@ -73,4 +73,11 @@ enum {
DNC_BANKRUPCY = 4,
};
/**
* Delete a news item type about a vehicle
* if the news item type is INVALID_STRING_ID all news about the vehicle get
* deleted
*/
void DeleteVehicleNews(VehicleID, StringID news);
#endif /* NEWS_H */