diff options
author | rubidium <rubidium@openttd.org> | 2007-03-03 22:03:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-03 22:03:15 +0000 |
commit | 356c2e2c907b142862625e6864480cc6991547e9 (patch) | |
tree | 419b44d6e3973f9233c668259ab6c7a64273f449 /src/engine.cpp | |
parent | 9da74db5017e00fee13430ea8e68554e9395ab9c (diff) | |
download | openttd-356c2e2c907b142862625e6864480cc6991547e9.tar.xz |
(svn r9001) -Codechange: remove duplication of functions and strings with respect to the news of new vehicles.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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) |