mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-22 07:00:25 +02: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
@@ -57,7 +57,7 @@ class ScriptCommandEvent : public Event
|
||||
{
|
||||
public:
|
||||
ScriptCommandEvent(unsigned int eventNum);
|
||||
ScriptCommandEvent(unsigned int eventNum, size_t numArgs);
|
||||
ScriptCommandEvent(unsigned int eventNum, int numArgs);
|
||||
};
|
||||
|
||||
ScriptCommandEvent::ScriptCommandEvent(unsigned int eventNum)
|
||||
@@ -66,8 +66,8 @@ ScriptCommandEvent::ScriptCommandEvent(unsigned int eventNum)
|
||||
fromScript = true;
|
||||
}
|
||||
|
||||
ScriptCommandEvent::ScriptCommandEvent(unsigned int eventNum, size_t numArgs)
|
||||
: Event(eventNum)
|
||||
ScriptCommandEvent::ScriptCommandEvent(unsigned int eventNum, int numArgs)
|
||||
: Event(eventNum, numArgs)
|
||||
{
|
||||
fromScript = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user