diff options
author | rubidium <rubidium@openttd.org> | 2008-05-15 13:39:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-15 13:39:36 +0000 |
commit | 76b8970a33a9dfad23fe14d92813f21385594986 (patch) | |
tree | dbf82a81f389a63eb11a06152870ba44cc07d456 /src/vehicle.cpp | |
parent | 009a748ab33a77613aad7d269a79eb74a3be5080 (diff) | |
download | openttd-76b8970a33a9dfad23fe14d92813f21385594986.tar.xz |
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1ad06f503..93a6ef5b5 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -952,7 +952,7 @@ static void ShowVehicleGettingOld(Vehicle *v, StringID msg) SetDParam(0, _vehicle_type_names[v->type]); SetDParam(1, v->unitnumber); - AddNewsItem(msg, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); + AddNewsItem(msg, NS_ADVICE, v->index, 0); } void AgeVehicle(Vehicle *v) @@ -1651,7 +1651,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, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); + AddNewsItem(STR_ORDER_REFIT_FAILED, NS_ADVICE, v->index, 0); } } else if (v->owner == _local_player && cost.GetCost() != 0) { ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, cost.GetCost()); @@ -1677,7 +1677,7 @@ void VehicleEnterDepot(Vehicle *v) } SetDParam(0, v->unitnumber); - AddNewsItem(string, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); + AddNewsItem(string, NS_ADVICE, v->index, 0); } } } |