(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants

This commit is contained in:
tron
2005-10-07 07:35:15 +00:00
parent 2b44da199c
commit 3397e202c8
22 changed files with 84 additions and 85 deletions

View File

@@ -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);