summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-15 13:39:36 +0000
committerrubidium <rubidium@openttd.org>2008-05-15 13:39:36 +0000
commit76b8970a33a9dfad23fe14d92813f21385594986 (patch)
treedbf82a81f389a63eb11a06152870ba44cc07d456 /src/order_cmd.cpp
parent009a748ab33a77613aad7d269a79eb74a3be5080 (diff)
downloadopenttd-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/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 36f804386..9d3cf3cab 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1444,7 +1444,7 @@ void CheckOrders(const Vehicle* v)
SetDParam(0, v->unitnumber);
AddNewsItem(
message,
- NM_SMALL, NF_VIEWPORT | NF_VEHICLE, NT_ADVICE, DNC_NONE,
+ NS_ADVICE,
v->index,
0
);