Changeset - r2502:2c4fc1650942
[Not reviewed]
master
0 6 0
tron - 19 years ago 2005-10-10 10:36:37
tron@openttd.org
(svn r3028) s/255/OWNER_SPECTATOR/
6 files changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -2167,7 +2167,7 @@ static void ChangeTileOwner_Track(TileIn
 
{
 
	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);
road_cmd.c
Show inline comments
 
@@ -1196,7 +1196,7 @@ static void ChangeTileOwner_Road(TileInd
 

	
 
	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) {
station_cmd.c
Show inline comments
 
@@ -2952,7 +2952,7 @@ static void ChangeTileOwner_Station(Tile
 
{
 
	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;
tunnelbridge_cmd.c
Show inline comments
 
@@ -1412,7 +1412,7 @@ static void ChangeTileOwner_TunnelBridge
 
{
 
	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) {
unmovable_cmd.c
Show inline comments
 
@@ -389,7 +389,7 @@ static void ChangeTileOwner_Unmovable(Ti
 
{
 
	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);
water_cmd.c
Show inline comments
 
@@ -697,7 +697,7 @@ static void ChangeTileOwner_Water(TileIn
 
{
 
	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);
0 comments (0 inline, 0 general)