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 | eeabab4555bf20ea9769bfea05c1fc278a493fa3 (patch) | |
tree | 6ac53730ac3371086562388c2590d8323adb6b80 /src/vehicle.cpp | |
parent | d8cfb4f064d5492770d3325ef6e288b630e34e7c (diff) | |
download | openttd-eeabab4555bf20ea9769bfea05c1fc278a493fa3.tar.xz |
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 4fd3e0d42..16a1346f1 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -13,7 +13,7 @@ #include "timetable.h" #include "viewport_func.h" #include "gfx_func.h" -#include "news.h" +#include "news_func.h" #include "command_func.h" #include "saveload.h" #include "player_func.h" @@ -1544,7 +1544,7 @@ static void ShowVehicleGettingOld(Vehicle *v, StringID msg) SetDParam(0, _vehicle_type_names[v->type]); SetDParam(1, v->unitnumber); - AddNewsItem(msg, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, 0); + AddNewsItem(msg, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); } void AgeVehicle(Vehicle *v) @@ -2258,7 +2258,7 @@ void VehicleEnterDepot(Vehicle *v) /* Notify the user that we stopped the vehicle */ SetDParam(0, _vehicle_type_names[v->type]); SetDParam(1, v->unitnumber); - AddNewsItem(STR_ORDER_REFIT_FAILED, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, 0); + AddNewsItem(STR_ORDER_REFIT_FAILED, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); } } else if (v->owner == _local_player && cost.GetCost() != 0) { ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost()); @@ -2284,7 +2284,7 @@ void VehicleEnterDepot(Vehicle *v) } SetDParam(0, v->unitnumber); - AddNewsItem(string, NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0), v->index, 0); + AddNewsItem(string, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); } } } |