diff options
author | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
commit | aa7334a3eca674131dc1198c592c7e4a925f1d56 (patch) | |
tree | dbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /train_gui.c | |
parent | e2df1d71d5ec39f89c540f116c1cb0b765a74229 (diff) | |
download | openttd-aa7334a3eca674131dc1198c592c7e4a925f1d56.tar.xz |
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index 070b8e2d9..c23486799 100644 --- a/train_gui.c +++ b/train_gui.c @@ -323,7 +323,7 @@ static void ShowBuildTrainWindow(uint tile) WP(w,buildtrain_d).railtype = _map3_lo[tile] & 0xF; } else { w->caption_color = _local_player; - WP(w,buildtrain_d).railtype = DEREF_PLAYER(_local_player)->max_railtype - 1; + WP(w,buildtrain_d).railtype = GetPlayer(_local_player)->max_railtype - 1; } } @@ -1305,7 +1305,7 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e) /* draw the widgets */ { - const Player *p = DEREF_PLAYER(owner); + const Player *p = GetPlayer(owner); if (station == -1) { /* Company Name -- (###) Trains */ SetDParam(0, p->name_1); |