mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Mark the script as executed before invoking the callbacks.
This commit is contained in:
parent
efe0748d67
commit
9579fcfe64
@ -430,6 +430,9 @@ bool Core::Execute()
|
|||||||
// Force enable null entities if not already enabled by script
|
// Force enable null entities if not already enabled by script
|
||||||
EnableNullEntities();
|
EnableNullEntities();
|
||||||
|
|
||||||
|
// At this point, the scripts were executed
|
||||||
|
m_Executed = true;
|
||||||
|
|
||||||
m_LockPreLoadSignal = true;
|
m_LockPreLoadSignal = true;
|
||||||
// Trigger callbacks that must initialize stuff before the loaded event is triggered
|
// Trigger callbacks that must initialize stuff before the loaded event is triggered
|
||||||
(*mOnPreLoad.first)();
|
(*mOnPreLoad.first)();
|
||||||
@ -453,8 +456,9 @@ bool Core::Execute()
|
|||||||
ImportObjects();
|
ImportObjects();
|
||||||
ImportPickups();
|
ImportPickups();
|
||||||
ImportVehicles();
|
ImportVehicles();
|
||||||
|
|
||||||
// Successfully executed
|
// Successfully executed
|
||||||
return (m_Executed = true);
|
return m_Executed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user