1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Implement requested changes

- Change the GuestPathfinder object to a smart pointer

 - Improved function signatures

 - Added javadoc comments to the abstract base class

 - Converted pointers to references in  pathfinding function calls
This commit is contained in:
LordOfLunacy
2022-05-14 15:28:24 -04:00
parent 428f7bd9ec
commit fa71bbc1b2
7 changed files with 145 additions and 131 deletions

View File

@@ -89,9 +89,6 @@ 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();