File diff r18237:ef265d83ffb7 → r18238:3e9a69b42b81
src/landscape.cpp
Show inline comments
 
@@ -76,13 +76,13 @@ extern const byte _slope_to_sprite_offse
 
	0, 0, 0, 0, 0, 0, 0, 16, 0, 0,  0, 17,  0, 15, 18, 0,
 
};
 

	
 
/**
 
 * Description of the snow line throughout the year.
 
 *
 
 * If it is \c NULL, a static snowline height is used, as set by \c _settings_game.game_creation.snow_line.
 
 * If it is \c NULL, a static snowline height is used, as set by \c _settings_game.game_creation.snow_line_height.
 
 * Otherwise it points to a table loaded from a newGRF file that describes the variable snowline.
 
 * @ingroup SnowLineGroup
 
 * @see GetSnowLine() GameCreationSettings
 
 */
 
static SnowLine *_snow_line = NULL;
 

	
 
@@ -558,13 +558,13 @@ void SetSnowLine(byte table[SNOW_LINE_MO
 
 * Get the current snow line, either variable or static.
 
 * @return the snow line height.
 
 * @ingroup SnowLineGroup
 
 */
 
byte GetSnowLine()
 
{
 
	if (_snow_line == NULL) return _settings_game.game_creation.snow_line;
 
	if (_snow_line == NULL) return _settings_game.game_creation.snow_line_height * TILE_HEIGHT;
 

	
 
	YearMonthDay ymd;
 
	ConvertDateToYMD(_date, &ymd);
 
	return _snow_line->table[ymd.month][ymd.day];
 
}
 

	
 
@@ -572,23 +572,23 @@ byte GetSnowLine()
 
 * Get the highest possible snow line height, either variable or static.
 
 * @return the highest snow line height.
 
 * @ingroup SnowLineGroup
 
 */
 
byte HighestSnowLine()
 
{
 
	return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->highest_value;
 
	return _snow_line == NULL ? _settings_game.game_creation.snow_line_height * TILE_HEIGHT : _snow_line->highest_value;
 
}
 

	
 
/**
 
 * Get the lowest possible snow line height, either variable or static.
 
 * @return the lowest snow line height.
 
 * @ingroup SnowLineGroup
 
 */
 
byte LowestSnowLine()
 
{
 
	return _snow_line == NULL ? _settings_game.game_creation.snow_line : _snow_line->lowest_value;
 
	return _snow_line == NULL ? _settings_game.game_creation.snow_line_height * TILE_HEIGHT : _snow_line->lowest_value;
 
}
 

	
 
/**
 
 * Clear the variable snow line table and free the memory.
 
 * @ingroup SnowLineGroup
 
 */