Fix some daylength issues, possible division by zero in main menu.
[openttd-joker.git] / src / saveload / saveload_internal.h
blob6d99f2858144de2e4540490275c2e2f58633ac8f
1 /* $Id$ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file saveload_internal.h Declaration of functions used in more save/load files */
12 #ifndef SAVELOAD_INTERNAL_H
13 #define SAVELOAD_INTERNAL_H
15 #include "../company_manager_face.h"
16 #include "../order_base.h"
17 #include "../engine_type.h"
18 #include "saveload.h"
20 void InitializeOldNames();
21 StringID RemapOldStringID(StringID s);
22 char *CopyFromOldName(StringID id);
23 void ResetOldNames();
25 void MoveBuoysToWaypoints();
26 void MoveWaypointsToBaseStations();
27 const SaveLoad *GetBaseStationDescription();
29 void AfterLoadVehicles(bool part_of_load);
30 void FixupTrainLengths();
31 void AfterLoadTemplateVehicles();
32 void AfterLoadStations();
33 void AfterLoadRoadStops();
34 void AfterLoadLabelMaps();
35 void AfterLoadStoryBook();
36 void AfterLoadLinkGraphs();
37 void AfterLoadCompanyStats();
38 void AfterLoadTraceRestrict();
39 void UpdateHousesAndTowns();
41 void UpdateOldAircraft();
43 void SaveViewportBeforeSaveGame();
44 void ResetViewportAfterLoadGame();
46 void ConvertOldMultiheadToNew();
47 void ConnectMultiheadedTrains();
49 Engine *GetTempDataEngine(EngineID index);
50 void CopyTempEngineData();
52 void AfterLoadTemplateVehiclesUpdateImage();
54 extern int32 _saved_scrollpos_x;
55 extern int32 _saved_scrollpos_y;
56 extern ZoomLevelByte _saved_scrollpos_zoom;
58 extern SavegameType _savegame_type;
59 extern uint32 _ttdp_version;
61 CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
63 Order UnpackOldOrder(uint16 packed);
65 #endif /* SAVELOAD_INTERNAL_H */