Remove ResetHub; as it's almost certainly going to be made obsolete with the new scripts and save game rework.

This commit is contained in:
hispidence 2021-08-09 00:07:08 +01:00
parent 25e92b6dbd
commit 9df901ec1f
3 changed files with 5 additions and 8 deletions

View file

@ -86,15 +86,13 @@ e.g. `myLevel.laraType = LaraType.DIVESUIT`
@mem laraType*/
"laraType", &GameScriptLevel::LaraType,
/// (bool) todo
/// (bool) If true, an occasional screen shake effect (as seen in TRC's Sinking Submarine) will
// happen throughout the level.
//@mem rumble
"rumble", &GameScriptLevel::Rumble,
/// (bool) todo
//@mem resetHub
"resetHub", &GameScriptLevel::ResetHub,
/// (Mirror) todo
/// (Mirror) object holding the location and size of the room's mirror, if present.
// __(not yet implemented)__
//@mem mirror
"mirror", &GameScriptLevel::Mirror,

View file

@ -53,7 +53,6 @@ struct GameScriptLevel
GameScriptColor Fog{ 0, 0, 0 };
bool Storm{ false };
WEATHER_TYPE Weather{ WEATHER_TYPE::NORMAL };
bool ResetHub{ false };
bool Rumble{ false };
LARA_TYPE LaraType{ LARA_TYPE::NORMAL };
GameScriptMirror Mirror;

View file

@ -1073,7 +1073,7 @@ unsigned CALLBACK LoadLevel(void* data)
Wibble = 0;
TorchRoom = -1;
InitialiseGameFlags();
InitialiseLara(!(InitialiseGame || CurrentLevel == 1 || level->ResetHub));
InitialiseLara(!(InitialiseGame || CurrentLevel == 1));
GetCarriedItems();
GetAIPickups();
Lara.Vehicle = -1;