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:
26
src/openrct2/peep/RideUseSystem.cpp
Normal file
26
src/openrct2/peep/RideUseSystem.cpp
Normal 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
|
||||
Reference in New Issue
Block a user