(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
This commit is contained in:
@@ -591,7 +591,7 @@ bool CanDeleteHouse(TileIndex tile)
|
||||
|
||||
/* Human players are always allowed to remove buildings, as is water and
|
||||
* anyone using the scenario editor. */
|
||||
if ((IsValidPlayer(_current_player) && IsHumanPlayer(_current_player))
|
||||
if ((IsValidPlayerID(_current_player) && IsHumanPlayer(_current_player))
|
||||
|| _current_player == OWNER_WATER || _current_player == OWNER_NONE) return true;
|
||||
|
||||
if (HasBit(hs->callback_mask, CBM_HOUSE_DENY_DESTRUCTION)) {
|
||||
|
Reference in New Issue
Block a user