From 40888e9486f00aa852c531209bbfe55f24e2e04f Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Thu, 7 May 2020 16:57:49 +0300 Subject: car control and friends --- src/core/FileLoader.cpp | 4 ++-- src/core/Game.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index 21fd8a70..b42cd0a2 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -927,10 +927,10 @@ CFileLoader::LoadCarPathNode(const char *line, int id, int node, bool waterPath) if(id == -1) ThePaths.StoreDetachedNodeInfoCar(node, type, next, x, y, z, width, numLeft, numRight, - !!(flags&1), !!(flags&4), speed, !!(flags&2), waterPath, spawnRate, false); + !!(flags&1), !!(flags&4), speed, !!(flags&2), waterPath, spawnRate * 15, false); else ThePaths.StoreNodeInfoCar(id, node, type, next, x, y, z, 0, numLeft, numRight, - !!(flags&1), !!(flags&4), speed, !!(flags&2), waterPath, spawnRate); + !!(flags&1), !!(flags&4), speed, !!(flags&2), waterPath, spawnRate * 15); } diff --git a/src/core/Game.h b/src/core/Game.h index 1b8fcb0a..ed9ded4f 100644 --- a/src/core/Game.h +++ b/src/core/Game.h @@ -58,6 +58,8 @@ public: static void ShutDownForRestart(void); static void InitialiseWhenRestarting(void); static void Process(void); + + static bool IsInInterior(void) { return currArea != AREA_MAIN_MAP; } // NB: these do something on PS2 static void TidyUpMemory(bool, bool); -- cgit v1.2.3