forked from mirror/OpenTTD
(svn r6183) Move GetDrawStringPlayerColor() out of gfx.[ch]
This commit is contained in:
10
gfx.c
10
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user