summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-07 15:57:49 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-07 15:57:49 +0200
commit40888e9486f00aa852c531209bbfe55f24e2e04f (patch)
tree830ce89f85d2e10386d5d697468eee5f5c9e07d7 /src/core
parentchanged default ID ranges. old default.ide incompatible now (diff)
downloadre3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar.gz
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar.bz2
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar.lz
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar.xz
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.tar.zst
re3-40888e9486f00aa852c531209bbfe55f24e2e04f.zip
Diffstat (limited to '')
-rw-r--r--src/core/FileLoader.cpp4
-rw-r--r--src/core/Game.h2
2 files changed, 4 insertions, 2 deletions
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);