openttd 1.5-rc1

--HG--
branch : openttd
This commit is contained in:
Pavel Stupnikov
2015-03-19 14:33:13 +03:00
parent 5eed164aa7
commit 46e74a9a05
97 changed files with 647 additions and 1107 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: toolbar_gui.cpp 27150 2015-02-14 21:22:47Z frosch $ */
/* $Id: toolbar_gui.cpp 27178 2015-03-07 18:27:01Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -1125,7 +1125,7 @@ void SetStartingYear(Year year)
_settings_game.game_creation.starting_year = Clamp(year, MIN_YEAR, MAX_YEAR);
Date new_date = ConvertYMDToDate(_settings_game.game_creation.starting_year, 0, 1);
/* If you open a savegame as scenario there may already be link graphs.*/
LinkGraphSchedule::Instance()->ShiftDates(new_date - _date);
LinkGraphSchedule::instance.ShiftDates(new_date - _date);
SetDate(new_date, 0);
}