summaryrefslogtreecommitdiff
path: root/graph_gui.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
committercelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
commitaa7334a3eca674131dc1198c592c7e4a925f1d56 (patch)
treedbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /graph_gui.c
parente2df1d71d5ec39f89c540f116c1cb0b765a74229 (diff)
downloadopenttd-aa7334a3eca674131dc1198c592c7e4a925f1d56.tar.xz
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'graph_gui.c')
-rw-r--r--graph_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph_gui.c b/graph_gui.c
index 8c4833136..0cdde9de0 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -904,7 +904,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
// Paint the player icons
for (i=0;i<MAX_PLAYERS;i++) {
- if (!DEREF_PLAYER(i)->is_active) {
+ if (!GetPlayer(i)->is_active) {
// Check if we have the player as an active player
if (!(w->disabled_state & (1 << (i+13)))) {
// Bah, player gone :(
@@ -1024,7 +1024,7 @@ static void PerformanceRatingDetailWndProc(Window *w, WindowEvent *e)
// Hide the player who are not active
for (i=0;i<MAX_PLAYERS;i++) {
- if (!DEREF_PLAYER(i)->is_active) {
+ if (!GetPlayer(i)->is_active) {
w->disabled_state += 1 << (i+13);
}
}