summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-28 06:21:48 +0000
committertron <tron@openttd.org>2006-08-28 06:21:48 +0000
commit4e36c4a349543bf6599559ee36ddfda15c584a6b (patch)
treee401abd666512b3bae48f7f2f9aba66ba123e5cb /gfx.c
parent2930781beaf90dfbbf3338c983062a456d8965bd (diff)
downloadopenttd-4e36c4a349543bf6599559ee36ddfda15c584a6b.tar.xz
(svn r6183) Move GetDrawStringPlayerColor() out of gfx.[ch]
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gfx.c b/gfx.c
index 09dddfe52..a6b1b4ec5 100644
--- a/gfx.c
+++ b/gfx.c
@@ -3,7 +3,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "functions.h"
-#include "player.h"
+#include "macros.h"
#include "spritecache.h"
#include "strings.h"
#include "string.h"
@@ -1998,11 +1998,3 @@ void SortResolutions(int count)
{
qsort(_resolutions, count, sizeof(_resolutions[0]), compare_res);
}
-
-uint16 GetDrawStringPlayerColor(PlayerID player)
-{
- // Get the color for DrawString-subroutines which matches the color
- // of the player
- if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1) return 1;
- return (_color_list[_player_colors[player]].window_color_1b) | IS_PALETTE_COLOR;
-}