(svn r3028) s/255/OWNER_SPECTATOR/

This commit is contained in:
tron 2005-10-10 10:36:37 +00:00
parent 3d87a4d7ea
commit 7ab7d79190
6 changed files with 6 additions and 6 deletions

View File

@ -2167,7 +2167,7 @@ static void ChangeTileOwner_Track(TileIndex tile, PlayerID old_player, PlayerID
{
if (!IsTileOwner(tile, old_player)) return;
if (new_player != 255) {
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);

View File

@ -1196,7 +1196,7 @@ static void ChangeTileOwner_Road(TileIndex tile, PlayerID old_player, PlayerID n
if (!IsTileOwner(tile, old_player)) return;
if (new_player != 255) {
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
if (GB(_m[tile].m5, 4, 4) == 0) {

View File

@ -2952,7 +2952,7 @@ static void ChangeTileOwner_Station(TileIndex tile, PlayerID old_player, PlayerI
{
if (!IsTileOwner(tile, old_player)) return;
if (new_player != 255) {
if (new_player != OWNER_SPECTATOR) {
Station *st = GetStation(_m[tile].m2);
SetTileOwner(tile, new_player);
st->owner = new_player;

View File

@ -1412,7 +1412,7 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, PlayerID old_player, Pl
{
if (!IsTileOwner(tile, old_player)) return;
if (new_player != 255) {
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
if((_m[tile].m5 & 0xC0)==0xC0) {

View File

@ -389,7 +389,7 @@ static void ChangeTileOwner_Unmovable(TileIndex tile, PlayerID old_player, Playe
{
if (!IsTileOwner(tile, old_player)) return;
if (_m[tile].m5==3 && new_player != 255) {
if (_m[tile].m5 == 3 && new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
DoClearSquare(tile);

View File

@ -697,7 +697,7 @@ static void ChangeTileOwner_Water(TileIndex tile, PlayerID old_player, PlayerID
{
if (!IsTileOwner(tile, old_player)) return;
if (new_player != 255) {
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
} else {
DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);