This commit is contained in:
Nikolay Korolev 2021-02-07 23:29:49 +03:00
parent 410eb19ce6
commit 9b9ffc4b13
10 changed files with 1024 additions and 54 deletions

View file

@ -22,6 +22,7 @@
#include "Darkel.h"
#include "Debug.h"
#include "EventList.h"
#include "Ferry.h"
#include "FileLoader.h"
#include "FileMgr.h"
#include "Fire.h"
@ -539,6 +540,7 @@ bool CGame::Initialise(const char* datFile)
LoadingScreen("Loading the Game", "Position dynamic objects", nil);
LoadingScreen("Loading the Game", "Initialise vehicle paths", nil);
CFerry::InitFerrys();
CTrain::InitTrains();
CPlane::InitPlanes();
CCredits::Init();
@ -713,6 +715,7 @@ void CGame::ReInitGameObjectVariables(void)
CTheScripts::StartTestScript();
CTheScripts::Process();
TheCamera.Process();
CFerry::InitFerrys();
CTrain::InitTrains();
CPlane::InitPlanes();
}
@ -798,6 +801,7 @@ void CGame::InitialiseWhenRestarting(void)
if ( GenericLoad() == true )
{
DMAudio.ResetTimers(CTimer::GetTimeInMilliseconds());
CFerry::InitFerrys();
CTrain::InitTrains();
CPlane::InitPlanes();
}
@ -881,6 +885,7 @@ void CGame::Process(void)
CCollision::Update();
CScriptPaths::Update();
CFerry::UpdateFerrys();
CTrain::UpdateTrains();
CPlane::UpdatePlanes();
CHeli::UpdateHelis();

View file

@ -146,7 +146,9 @@ enum Config {
NUM_EXPLOSIONS = 48,
NUM_SETPIECES = 96,
NUM_SHORTCUT_START_POINTS = 16
NUM_SHORTCUT_START_POINTS = 16,
NUM_FERRY_PATHS = 1
};
// We don't expect to compile for PS2 or Xbox