mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-26 06:59:56 +01:00
(svn r21938) -Codechange: AfterLoadGame() is no longer friend of Vehicle.
This commit is contained in:
parent
1a971fb6d6
commit
0ebc548a89
@ -115,7 +115,6 @@ struct GroundVehicleCache;
|
|||||||
extern const SaveLoad *GetVehicleDescription(VehicleType vt);
|
extern const SaveLoad *GetVehicleDescription(VehicleType vt);
|
||||||
struct LoadgameState;
|
struct LoadgameState;
|
||||||
extern bool LoadOldVehicle(LoadgameState *ls, int num);
|
extern bool LoadOldVehicle(LoadgameState *ls, int num);
|
||||||
extern bool AfterLoadGame();
|
|
||||||
extern void FixOldVehicles();
|
extern void FixOldVehicles();
|
||||||
|
|
||||||
/** %Vehicle data structure. */
|
/** %Vehicle data structure. */
|
||||||
@ -129,7 +128,6 @@ private:
|
|||||||
Vehicle *previous_shared; ///< NOSAVE: pointer to the previous vehicle in the shared order chain
|
Vehicle *previous_shared; ///< NOSAVE: pointer to the previous vehicle in the shared order chain
|
||||||
public:
|
public:
|
||||||
friend const SaveLoad *GetVehicleDescription(VehicleType vt); ///< So we can use private/protected variables in the saveload code
|
friend const SaveLoad *GetVehicleDescription(VehicleType vt); ///< So we can use private/protected variables in the saveload code
|
||||||
friend bool AfterLoadGame();
|
|
||||||
friend void FixOldVehicles();
|
friend void FixOldVehicles();
|
||||||
friend void AfterLoadVehicles(bool part_of_load); ///< So we can set the previous and first pointers while loading
|
friend void AfterLoadVehicles(bool part_of_load); ///< So we can set the previous and first pointers while loading
|
||||||
friend bool LoadOldVehicle(LoadgameState *ls, int num); ///< So we can set the proper next pointer while loading
|
friend bool LoadOldVehicle(LoadgameState *ls, int num); ///< So we can set the proper next pointer while loading
|
||||||
|
Loading…
Reference in New Issue
Block a user