car control and friends

This commit is contained in:
Nikolay Korolev
2020-05-07 16:57:49 +03:00
parent a8d8c0690d
commit 40888e9486
13 changed files with 189 additions and 128 deletions

View File

@ -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);
}

View File

@ -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);