From 35fde14a527e0381769d08422513e6746704e1fc Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 3 Mar 2007 22:03:15 +0000 Subject: (svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles. --- src/engine.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index 69f0136ae..3047fa40e 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -317,15 +317,8 @@ static void NewVehicleAvailable(Engine *e) FOR_ALL_PLAYERS(p) { if (p->is_active) SETBIT(p->avail_railtypes, railtype); } - - AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_TRAINAVAIL), 0, 0); - } else if (index < NUM_TRAIN_ENGINES + NUM_ROAD_ENGINES) { - AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_ROADAVAIL), 0, 0); - } else if (index < NUM_TRAIN_ENGINES + NUM_ROAD_ENGINES + NUM_SHIP_ENGINES) { - AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_SHIPAVAIL), 0, 0); - } else { - AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_AIRCRAFTAVAIL), 0, 0); } + AddNewsItem(index, NEWS_FLAGS(NM_CALLBACK, 0, NT_NEW_VEHICLES, DNC_VEHICLEAVAIL), 0, 0); } void EnginesMonthlyLoop(void) -- cgit v1.2.3-54-g00ecf