1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Use std::vector for ride use memory (#14884)

* Use std::vector for ride use memory

* Use new system for import/export

* Remove legacy field

* Add replay entity size protection to prevent crash

* Increment network version

* Update replays

* Move function to header

* Move constant to RCT12 header as used for both 1 and 2

* Align naming with nsf
This commit is contained in:
Duncan
2021-08-17 21:29:35 +01:00
committed by GitHub
parent 399f6f27b4
commit 223b926f8c
19 changed files with 260 additions and 61 deletions

View File

@@ -0,0 +1,26 @@
/*****************************************************************************
* Copyright (c) 2014-2021 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "RideUseSystem.h"
namespace OpenRCT2::RideUse
{
static RideHistory _history;
static RideTypeHistory _typeHistory;
RideHistory& GetHistory()
{
return _history;
}
RideTypeHistory& GetTypeHistory()
{
return _typeHistory;
}
} // namespace OpenRCT2::RideUse