1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Part of pathfinding rework

This commit is contained in:
LordOfLunacy
2022-05-13 19:18:46 -04:00
parent 07520ce0ba
commit 45013a90cc
7 changed files with 59 additions and 26 deletions

View File

@@ -27,6 +27,7 @@
#include "localisation/Localisation.h"
#include "management/NewsItem.h"
#include "network/network.h"
#include "./peep/GuestPathfinding.h"
#include "platform/Platform.h"
#include "profiling/Profiling.h"
#include "ride/Vehicle.h"
@@ -88,6 +89,9 @@ void GameState::InitAll(const TileCoordsXY& mapSize)
CheatsReset();
ClearRestrictedScenery();
// TODO: find a better place for this
gGuestPathfinder = new OriginalPathfinding();
#ifdef ENABLE_SCRIPTING
auto& scriptEngine = GetContext()->GetScriptEngine();
scriptEngine.ClearParkStorage();