summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-07 07:35:15 +0000
committertron <tron@openttd.org>2005-10-07 07:35:15 +0000
commit3397e202c82cda0398ef4a642e74f2d864c5dc7d (patch)
tree75058b5a9db24d07229edde45f993401aec6bd63 /players.c
parent2b44da199c7bb6aae62a7e6aaae7775a07d16bdd (diff)
downloadopenttd-3397e202c82cda0398ef4a642e74f2d864c5dc7d.tar.xz
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 4ae340a19..7169713cf 100644
--- a/players.c
+++ b/players.c
@@ -196,7 +196,7 @@ void InvalidatePlayerWindows(const Player *p)
bool CheckPlayerHasMoney(int32 cost)
{
if (cost > 0) {
- uint pid = _current_player;
+ PlayerID pid = _current_player;
if (pid < MAX_PLAYERS && cost > GetPlayer(pid)->player_money) {
SetDParam(0, cost);
_error_message = STR_0003_NOT_ENOUGH_CASH_REQUIRES;
@@ -284,7 +284,7 @@ bool CheckOwnership(PlayerID owner)
bool CheckTileOwnership(TileIndex tile)
{
- byte owner = GetTileOwner(tile);
+ PlayerID owner = GetTileOwner(tile);
assert(owner <= OWNER_WATER);