diff options
author | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
commit | 2426f5342f7d02e4c7a486123fb1f1eda6d556ad (patch) | |
tree | 6ac53730ac3371086562388c2590d8323adb6b80 /src/autoreplace_cmd.cpp | |
parent | 0e73ac21986a3b1224f63d220b9dbfb81a91d239 (diff) | |
download | openttd-2426f5342f7d02e4c7a486123fb1f1eda6d556ad.tar.xz |
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index ae49128d7..58e38a39d 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -4,7 +4,7 @@ #include "openttd.h" #include "roadveh.h" #include "ship.h" -#include "news.h" +#include "news_func.h" #include "player_func.h" #include "engine.h" #include "debug.h" @@ -377,7 +377,7 @@ CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs) default: NOT_REACHED(); message = 0; break; } - AddNewsItem(message, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, 0); + AddNewsItem(message, NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); } if (stopped) v->vehstatus &= ~VS_STOPPED; if (display_costs) _current_player = OWNER_NONE; @@ -408,7 +408,7 @@ CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs) if (w == NULL) { // we failed to make the train short enough SetDParam(0, v->unitnumber); - AddNewsItem(STR_TRAIN_TOO_LONG_AFTER_REPLACEMENT, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, 0); + AddNewsItem(STR_TRAIN_TOO_LONG_AFTER_REPLACEMENT, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); break; } temp = w; |