(svn r3028) s/255/OWNER_SPECTATOR/
authortron
Mon, 10 Oct 2005 10:36:37 +0000
changeset 2502 35e279b13856
parent 2501 670c3a74be81
child 2503 4dbacca764c4
(svn r3028) s/255/OWNER_SPECTATOR/
rail_cmd.c
road_cmd.c
station_cmd.c
tunnelbridge_cmd.c
unmovable_cmd.c
water_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);
--- 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) {
--- 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;
--- 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) {
--- 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);
--- 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);