From 76b8970a33a9dfad23fe14d92813f21385594986 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 15 May 2008 13:39:36 +0000 Subject: (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. --- src/aircraft_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/aircraft_cmd.cpp') diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 197bb24b0..492689a07 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1398,7 +1398,7 @@ static void CrashAirplane(Vehicle *v) SetDParam(1, st->index); AddNewsItem(newsitem, - NM_THIN, NF_VIEWPORT | NF_VEHICLE, NT_ACCIDENT, DNC_NONE, + NS_ACCIDENT_VEHICLE, v->index, 0); @@ -1443,7 +1443,7 @@ static void AircraftEntersTerminal(Vehicle *v) /* show newsitem of celebrating citizens */ AddNewsItem( STR_A033_CITIZENS_CELEBRATE_FIRST, - NM_THIN, NF_VIEWPORT | NF_VEHICLE, (v->owner == _local_player) ? NT_ARRIVAL_PLAYER : NT_ARRIVAL_OTHER, DNC_NONE, + (v->owner == _local_player) ? NS_ARRIVAL_PLAYER : NS_ARRIVAL_OTHER, v->index, 0); } -- cgit v1.2.3-54-g00ecf