Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 24 additions & 17 deletions GTASA.asl
Original file line number Diff line number Diff line change
Expand Up @@ -987,28 +987,35 @@ init

update
{
//=============================================================================
// General Housekeeping
//=============================================================================
// Disable all timer control actions if version was not detected
if (!vars.enabled)
return false;
try
{
//=============================================================================
// General Housekeeping
//=============================================================================
// Disable all timer control actions if version was not detected
if (!vars.enabled)
return false;

// Update always, to prevent splitting after loading (if possible, doesn't seem to be 100% reliable)
vars.watchers.UpdateAll(game);
// Update always, to prevent splitting after loading (if possible, doesn't seem to be 100% reliable)
vars.watchers.UpdateAll(game);

// Clear list of already executed splits if timer is reset
if (timer.CurrentPhase != vars.PrevPhase)
{
if (timer.CurrentPhase == TimerPhase.NotRunning)
// Clear list of already executed splits if timer is reset
if (timer.CurrentPhase != vars.PrevPhase)
{
vars.split.Clear();
vars.DebugOutput("Cleared list of already executed splits");
if (timer.CurrentPhase == TimerPhase.NotRunning)
{
vars.split.Clear();
vars.DebugOutput("Cleared list of already executed splits");
}
vars.PrevPhase = timer.CurrentPhase;
}
vars.PrevPhase = timer.CurrentPhase;
}

//print(vars.watchers["pedStatus"].Current.ToString());
//print(vars.watchers["pedStatus"].Current.ToString());
}
catch
{
return false;
}
}

split
Expand Down