# HG changeset patch # User tron # Date 1128940597 0 # Node ID 35e279b138567eda5375ad93de47550dcb716f50 # Parent 670c3a74be81a5d27b69401f49b89584e580473b (svn r3028) s/255/OWNER_SPECTATOR/ diff -r 670c3a74be81 -r 35e279b13856 rail_cmd.c --- a/rail_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/rail_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -2167,7 +2167,7 @@ { 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); diff -r 670c3a74be81 -r 35e279b13856 road_cmd.c --- a/road_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/road_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -1196,7 +1196,7 @@ 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) { diff -r 670c3a74be81 -r 35e279b13856 station_cmd.c --- a/station_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/station_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -2952,7 +2952,7 @@ { 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; diff -r 670c3a74be81 -r 35e279b13856 tunnelbridge_cmd.c --- a/tunnelbridge_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/tunnelbridge_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -1412,7 +1412,7 @@ { 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) { diff -r 670c3a74be81 -r 35e279b13856 unmovable_cmd.c --- a/unmovable_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/unmovable_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -389,7 +389,7 @@ { 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); diff -r 670c3a74be81 -r 35e279b13856 water_cmd.c --- a/water_cmd.c Fri Oct 07 20:53:21 2005 +0000 +++ b/water_cmd.c Mon Oct 10 10:36:37 2005 +0000 @@ -697,7 +697,7 @@ { 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);