diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-17 17:59:41 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-17 17:59:41 +0000 |
commit | fba7d2f7f32aaef9497abbe8f1d7423b1a9d9220 (patch) | |
tree | 78e9f63f8221b7a2f6a4824b9b0d23036795510d /players.c | |
parent | ec9e59b4fc1e04823f1637e26e04c8d5e8047fec (diff) | |
download | openttd-fba7d2f7f32aaef9497abbe8f1d7423b1a9d9220.tar.xz |
(svn r6803) -Codechange: Substitute magic numbers by an enum for the news windows
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -343,7 +343,7 @@ set_name:; if (!IsHumanPlayer(p->index)) { SetDParam(0, t->index); - AddNewsItem(p->index + (4 << 4), NEWS_FLAGS(NM_CALLBACK, NF_TILE, NT_COMPANY_INFO, DNC_BANKRUPCY), p->last_build_coordinate, 0); + AddNewsItem((StringID)(p->index | NB_BNEWCOMPANY), NEWS_FLAGS(NM_CALLBACK, NF_TILE, NT_COMPANY_INFO, DNC_BANKRUPCY), p->last_build_coordinate, 0); } return; } @@ -913,7 +913,7 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) /* Show the bankrupt news */ SetDParam(0, p->name_1); SetDParam(1, p->name_2); - AddNewsItem( (StringID)(p->index + 16*3), NEWS_FLAGS(NM_CALLBACK, 0, NT_COMPANY_INFO, DNC_BANKRUPCY),0,0); + AddNewsItem( (StringID)(p->index | NB_BBANKRUPT), NEWS_FLAGS(NM_CALLBACK, 0, NT_COMPANY_INFO, DNC_BANKRUPCY),0,0); /* Remove the company */ ChangeOwnershipOfPlayerItems(p->index, PLAYER_SPECTATOR); |