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/players.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/players.cpp')
-rw-r--r-- | src/players.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/players.cpp b/src/players.cpp index 0e2bf5086..18df770bd 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -9,7 +9,7 @@ #include "player_gui.h" #include "town.h" #include "station.h" -#include "news.h" +#include "news_func.h" #include "saveload.h" #include "command_func.h" #include "network/network.h" @@ -336,7 +336,7 @@ set_name:; if (!IsHumanPlayer(p->index)) { SetDParam(0, t->index); - AddNewsItem((StringID)(p->index | NB_BNEWCOMPANY), NEWS_FLAGS(NM_CALLBACK, NF_TILE, NT_COMPANY_INFO, DNC_BANKRUPCY), p->last_build_coordinate, 0); + AddNewsItem((StringID)(p->index | NB_BNEWCOMPANY), NM_CALLBACK, NF_TILE, NT_COMPANY_INFO, DNC_BANKRUPCY, p->last_build_coordinate, 0); } return; } @@ -902,7 +902,7 @@ CommandCost CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* Show the bankrupt news */ SetDParam(0, p->index); - AddNewsItem( (StringID)(p->index | NB_BBANKRUPT), NEWS_FLAGS(NM_CALLBACK, 0, NT_COMPANY_INFO, DNC_BANKRUPCY),0,0); + AddNewsItem((StringID)(p->index | NB_BBANKRUPT), NM_CALLBACK, NF_NONE, NT_COMPANY_INFO, DNC_BANKRUPCY, 0, 0); /* Remove the company */ ChangeOwnershipOfPlayerItems(p->index, PLAYER_SPECTATOR); |