diff options
author | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
commit | eeabab4555bf20ea9769bfea05c1fc278a493fa3 (patch) | |
tree | 6ac53730ac3371086562388c2590d8323adb6b80 /src/ship_cmd.cpp | |
parent | d8cfb4f064d5492770d3325ef6e288b630e34e7c (diff) | |
download | openttd-eeabab4555bf20ea9769bfea05c1fc278a493fa3.tar.xz |
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index dea4d2296..17c35d6d3 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -12,7 +12,7 @@ #include "pathfind.h" #include "station_map.h" #include "station.h" -#include "news.h" +#include "news_func.h" #include "engine.h" #include "player_func.h" #include "player_base.h" @@ -406,15 +406,12 @@ static void ShipArrivesAt(const Vehicle* v, Station* st) { /* Check if station was ever visited before */ if (!(st->had_vehicle_of_type & HVOT_SHIP)) { - uint32 flags; - st->had_vehicle_of_type |= HVOT_SHIP; SetDParam(0, st->index); - flags = (v->owner == _local_player) ? NEWS_FLAGS(NM_THIN, NF_VIEWPORT|NF_VEHICLE, NT_ARRIVAL_PLAYER, 0) : NEWS_FLAGS(NM_THIN, NF_VIEWPORT|NF_VEHICLE, NT_ARRIVAL_OTHER, 0); AddNewsItem( STR_9833_CITIZENS_CELEBRATE_FIRST, - flags, + NM_THIN, NF_VIEWPORT | NF_VEHICLE, (v->owner == _local_player) ? NT_ARRIVAL_PLAYER : NT_ARRIVAL_OTHER, DNC_NONE, v->index, 0); } |