(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as

these are used intermixed often.
This commit is contained in:
Darkvater
2006-10-14 22:22:48 +00:00
parent a85d679f54
commit 2380bb56cd
8 changed files with 15 additions and 16 deletions

View File

@@ -259,7 +259,7 @@ void UpdatePlayerMoney32(Player *p)
}
}
void GetNameOfOwner(PlayerID owner, TileIndex tile)
void GetNameOfOwner(Owner owner, TileIndex tile)
{
SetDParam(2, owner);
@@ -283,7 +283,7 @@ void GetNameOfOwner(PlayerID owner, TileIndex tile)
bool CheckOwnership(PlayerID owner)
{
assert(owner <= OWNER_WATER);
assert(owner < OWNER_END);
if (owner == _current_player) return true;
_error_message = STR_013B_OWNED_BY;
@@ -293,9 +293,9 @@ bool CheckOwnership(PlayerID owner)
bool CheckTileOwnership(TileIndex tile)
{
PlayerID owner = GetTileOwner(tile);
Owner owner = GetTileOwner(tile);
assert(owner <= OWNER_WATER);
assert(owner < OWNER_END);
if (owner == _current_player) return true;
_error_message = STR_013B_OWNED_BY;