Changeset - r1946:cc1ddc5930ed
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-06-17 07:35:10
tron@openttd.org
(svn r2452) Fix defect in r2448 which caused building tracks unexpectedly fail or succeed
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rail_cmd.c
Show inline comments
 
@@ -92,13 +92,13 @@ static bool CheckTrackCombination(TileIn
 
	if (type != RAIL_TYPE_NORMAL && type != RAIL_TYPE_SIGNALS)
 
		return false; /* Cannot build anything on depots and checkpoints */
 

	
 
	/* So, we have a tile with tracks on it (and possibly signals). Let's see
 
	 * what tracks first */
 
	current = GetTrackBits(tile);
 
	future = current & to_build;
 
	future = current | to_build;
 

	
 
	/* Are we really building something new? */
 
	if (current == future) {
 
		/* Nothing new is being built */
 
		_error_message = STR_1007_ALREADY_BUILT;
 
		return false;
0 comments (0 inline, 0 general)