@@ -193,13 +193,13 @@ void InvalidatePlayerWindows(const Playe
InvalidateWindow(WC_FINANCES, pid);
}
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;
return false;
@@ -281,13 +281,13 @@ bool CheckOwnership(PlayerID owner)
GetNameOfOwner(owner, 0);
bool CheckTileOwnership(TileIndex tile)
byte owner = GetTileOwner(tile);
PlayerID owner = GetTileOwner(tile);
assert(owner <= OWNER_WATER);
if (owner == _current_player)
return true;
_error_message = STR_013B_OWNED_BY;