mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Add OnStart, OnEnd and FreeLevelScript calls to DoTitle.
This commit is contained in:
parent
7527ac28ca
commit
b765ce9be1
1 changed files with 4 additions and 0 deletions
|
@ -709,6 +709,8 @@ GAME_STATUS DoTitle(int index)
|
|||
// Initialise ponytails
|
||||
InitialiseHair();
|
||||
|
||||
g_GameScript->OnStart();
|
||||
|
||||
ControlPhase(2, 0);
|
||||
#ifdef NEW_INV
|
||||
int status = 0, frames;
|
||||
|
@ -747,6 +749,8 @@ GAME_STATUS DoTitle(int index)
|
|||
UseSpotCam = false;
|
||||
S_CDStop();
|
||||
|
||||
g_GameScript->OnEnd();
|
||||
g_GameScript->FreeLevelScripts();
|
||||
switch (inventoryResult)
|
||||
{
|
||||
case INV_RESULT_NEW_GAME:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue