mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-26 09:00:26 +01:00
Optimized calls to Event() (avoid allocating a new Event when it can be reused)
This commit is contained in:
16 files changed
+195
-146
No files matched your search
@@ -175,12 +175,10 @@ void ScriptTimer::Disable()
|
||||
|
||||
void ScriptTimer::Enable()
|
||||
{
|
||||
bEnabled = true;
|
||||
bEnabled = true;
|
||||
|
||||
CancelEventsOfType( &EV_ScriptTimer_Think );
|
||||
|
||||
Event *ev = new Event( &EV_ScriptTimer_Think );
|
||||
ProcessEvent( ev );
|
||||
CancelEventsOfType(EV_ScriptTimer_Think);
|
||||
ProcessEvent(EV_ScriptTimer_Think);
|
||||
}
|
||||
|
||||
qboolean ScriptTimer::Done()
|
||||
|
||||
Reference in new issue
Block a user