Remove costly recalculation of a date format we already have.
(cherry picked from commit 6aca18d18252f1c2f6d4a215999b7d7afb7df813) See #36
This commit is contained in:

committed by
Jonathan G Rennison

parent
9ab2b8fa3e
commit
4955996b35
@@ -571,9 +571,7 @@ byte GetSnowLine()
|
||||
{
|
||||
if (_snow_line == NULL) return _settings_game.game_creation.snow_line_height;
|
||||
|
||||
YearMonthDay ymd;
|
||||
ConvertDateToYMD(_date, &ymd);
|
||||
return _snow_line->table[ymd.month][ymd.day];
|
||||
return _snow_line->table[_cur_date_ymd.month][_cur_date_ymd.day];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user