Changeset - r3276:df76b0f37079
[Not reviewed]
master
0 1 0
tron - 19 years ago 2006-03-19 19:56:57
tron@openttd.org
(svn r3988) Remove the info about valid rails on shore tiles. It's the same as for any other sloped tile
1 file changed with 2 insertions and 24 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -171,35 +171,13 @@ static const TrackBits _valid_tileh_slop
 
	TRACK_BIT_ALL,
 
	TRACK_BIT_ALL,
 

	
 
	TRACK_BIT_Y | TRACK_BIT_UPPER | TRACK_BIT_RIGHT,
 
	TRACK_BIT_ALL,
 
	TRACK_BIT_ALL
 
},
 

	
 
// allowed rail on coast tile
 
{
 
	0,
 
	TRACK_BIT_LEFT,
 
	TRACK_BIT_LOWER,
 
	TRACK_BIT_Y|TRACK_BIT_LEFT|TRACK_BIT_LOWER,
 

	
 
	TRACK_BIT_RIGHT,
 
	TRACK_BIT_ALL,
 
	TRACK_BIT_X|TRACK_BIT_RIGHT|TRACK_BIT_LOWER,
 
	TRACK_BIT_ALL,
 

	
 
	TRACK_BIT_UPPER,
 
	TRACK_BIT_X|TRACK_BIT_LEFT|TRACK_BIT_UPPER,
 
	TRACK_BIT_ALL,
 
	TRACK_BIT_ALL,
 

	
 
	TRACK_BIT_Y|TRACK_BIT_RIGHT|TRACK_BIT_UPPER,
 
	TRACK_BIT_ALL,
 
	TRACK_BIT_ALL
 
	},
 
}
 
};
 

	
 
uint GetRailFoundation(uint tileh, TrackBits bits)
 
{
 
	int i;
 

	
 
@@ -230,13 +208,13 @@ static uint32 CheckRailSlope(uint tileh,
 
	// never allow building on top of steep tiles
 
	if (!IsSteepTileh(tileh)) {
 
		rail_bits |= existing;
 

	
 
		// don't allow building on the lower side of a coast
 
		if (IsTileType(tile, MP_WATER) &&
 
				~_valid_tileh_slopes[2][tileh] & rail_bits) {
 
				~_valid_tileh_slopes[1][tileh] & rail_bits) {
 
			return_cmd_error(STR_3807_CAN_T_BUILD_ON_WATER);
 
		}
 

	
 
		// no special foundation
 
		if ((~_valid_tileh_slopes[0][tileh] & rail_bits) == 0)
 
			return 0;
0 comments (0 inline, 0 general)