File diff r7762:f53dd1eec4cf → r7763:878d494b5f57
src/rail_cmd.cpp
Show inline comments
 
@@ -264,13 +264,13 @@ static CommandCost CheckRailSlope(Slope 
 
	/* check track/slope combination */
 
	if ((f_new == FOUNDATION_INVALID) ||
 
	    ((f_new != FOUNDATION_NONE) && (!_patches.build_on_slopes || _is_old_ai_player))
 
	   ) return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
 

	
 
	Foundation f_old = GetRailFoundation(tileh, existing);
 
	return CommandCost(f_new != f_old ? _price.terraform : 0);
 
	return CommandCost(f_new != f_old ? _price.terraform : (Money)0);
 
}
 

	
 
/* Validate functions for rail building */
 
static inline bool ValParamTrackOrientation(Track track) {return IsValidTrack(track);}
 

	
 
/** Build a single piece of rail