(svn r3001) s/Player*/const Player*/

s/byte/PlayerID/
s/int/PlayerID/
and related changes
This commit is contained in:
tron
2005-09-30 20:37:25 +00:00
parent af5b74f0ed
commit ed8c9c91d6
12 changed files with 41 additions and 39 deletions

View File

@@ -185,7 +185,7 @@ void DrawPlayerFace(uint32 face, int color, int x, int y)
}
}
void InvalidatePlayerWindows(Player *p)
void InvalidatePlayerWindows(const Player *p)
{
PlayerID pid = p->index;
@@ -568,7 +568,7 @@ void OnTick_Players(void)
}
// index is the next parameter in _decode_parameters to set up
StringID GetPlayerNameString(PlayerID player, PlayerID index)
StringID GetPlayerNameString(PlayerID player, uint index)
{
if (IS_HUMAN_PLAYER(player) && player < MAX_PLAYERS) {
SetDParam(index, player+1);