summaryrefslogtreecommitdiff
path: root/src/station_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
commit373343cef606e940bfc99aa813cd05d36b15cb45 (patch)
treedbf82a81f389a63eb11a06152870ba44cc07d456 /src/station_cmd.cpp
parentc709b8a711039a12c4e105e9ec9c768f20cbf4a8 (diff)
downloadopenttd-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/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index f97ac5d2b..eb7054ec3 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -409,7 +409,7 @@ static void ShowRejectOrAcceptNews(const Station *st, uint num_items, CargoID *c
}
SetDParam(0, st->index);
- AddNewsItem(msg, NM_SMALL, NF_VIEWPORT | NF_TILE, NT_ACCEPTANCE, DNC_NONE, st->xy, 0);
+ AddNewsItem(msg, NS_ACCEPTANCE, st->xy, 0);
}
/**