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 | 373343cef606e940bfc99aa813cd05d36b15cb45 (patch) | |
tree | dbf82a81f389a63eb11a06152870ba44cc07d456 /src/autoreplace_cmd.cpp | |
parent | c709b8a711039a12c4e105e9ec9c768f20cbf4a8 (diff) | |
download | openttd-373343cef606e940bfc99aa813cd05d36b15cb45.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/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index fb5ad11f9..8b7688107 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -323,7 +323,7 @@ static CommandCost WagonRemoval(Vehicle *v, uint16 old_total_length) if (v == NULL) { /* We sold all the wagons and the train is still not short enough */ SetDParam(0, front->unitnumber); - AddNewsItem(STR_TRAIN_TOO_LONG_AFTER_REPLACEMENT, NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE, front->index, 0); + AddNewsItem(STR_TRAIN_TOO_LONG_AFTER_REPLACEMENT, NS_ADVICE, front->index, 0); return cost; } @@ -480,7 +480,7 @@ CommandCost MaybeReplaceVehicle(Vehicle *v, uint32 flags, bool display_costs) default: NOT_REACHED(); message = 0; break; } - AddNewsItem(message, NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, DNC_NONE, v->index, 0); + AddNewsItem(message, NS_ADVICE, v->index, 0); } } } |