openttd.c
changeset 5340 82c981816fcb
parent 5314 021dbca1d6da
child 5350 db5f6bf223d7
equal deleted inserted replaced
5339:7573f179efe8 5340:82c981816fcb
  1162 	if (_opt.road_side) _opt.road_side = 1;
  1162 	if (_opt.road_side) _opt.road_side = 1;
  1163 
  1163 
  1164 	/* Check all NewGRFs are present */
  1164 	/* Check all NewGRFs are present */
  1165 	if (!IsGoodGRFConfigList()) return false;
  1165 	if (!IsGoodGRFConfigList()) return false;
  1166 
  1166 
       
  1167 	/* Update current year
       
  1168 	 * must be done before loading sprites as some newgrfs check it */
       
  1169 	SetDate(_date);
       
  1170 
  1167 	// Load the sprites
  1171 	// Load the sprites
  1168 	GfxLoadSprites();
  1172 	GfxLoadSprites();
  1169 	LoadStringWidthTable();
  1173 	LoadStringWidthTable();
  1170 
  1174 
  1171 	/* Connect front and rear engines of multiheaded trains and converts
  1175 	/* Connect front and rear engines of multiheaded trains and converts
  1172 	 * subtype to the new format */
  1176 	 * subtype to the new format */
  1173 	if (CheckSavegameVersionOldStyle(17, 1)) ConvertOldMultiheadToNew();
  1177 	if (CheckSavegameVersionOldStyle(17, 1)) ConvertOldMultiheadToNew();
  1174 
  1178 
  1175 	/* Connect front and rear engines of multiheaded trains */
  1179 	/* Connect front and rear engines of multiheaded trains */
  1176 	ConnectMultiheadedTrains();
  1180 	ConnectMultiheadedTrains();
  1177 
       
  1178 	// Update current year
       
  1179 	SetDate(_date);
       
  1180 
  1181 
  1181 	// reinit the landscape variables (landscape might have changed)
  1182 	// reinit the landscape variables (landscape might have changed)
  1182 	InitializeLandscapeVariables(true);
  1183 	InitializeLandscapeVariables(true);
  1183 
  1184 
  1184 	// Update all vehicles
  1185 	// Update all vehicles