(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner

This commit is contained in:
tron
2005-06-04 11:56:32 +00:00
parent 19e2b40a78
commit 0c4ecbe9ec
25 changed files with 118 additions and 122 deletions

View File

@@ -281,8 +281,10 @@ bool CheckOwnership(byte owner)
bool CheckTileOwnership(uint tile)
{
byte owner = _map_owner[tile];
byte owner = GetTileOwner(tile);
assert(owner <= OWNER_WATER);
if (owner == _current_player)
return true;
_error_message = STR_013B_OWNED_BY;