Skip to content

Commit 4de365c

Browse files
committed
Update global processor call for other cores
1 parent 49937a5 commit 4de365c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

methods/CMangos/GlobalMethods.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ namespace LuaGlobalFunctions
16001600
int functionRef = luaL_ref(E->L, LUA_REGISTRYINDEX);
16011601
if (functionRef != LUA_REFNIL && functionRef != LUA_NOREF)
16021602
{
1603-
E->eventMgr->globalProcessor->AddEvent(functionRef, min, max, repeats);
1603+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->AddEvent(functionRef, min, max, repeats);
16041604
E->Push(functionRef);
16051605
}
16061606
return 1;
@@ -1621,7 +1621,7 @@ namespace LuaGlobalFunctions
16211621
if (all_Events)
16221622
E->eventMgr->SetState(eventId, LUAEVENT_STATE_ABORT);
16231623
else
1624-
E->eventMgr->globalProcessor->SetState(eventId, LUAEVENT_STATE_ABORT);
1624+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetState(eventId, LUAEVENT_STATE_ABORT);
16251625
return 0;
16261626
}
16271627

@@ -1638,7 +1638,7 @@ namespace LuaGlobalFunctions
16381638
if (all_Events)
16391639
E->eventMgr->SetStates(LUAEVENT_STATE_ABORT);
16401640
else
1641-
E->eventMgr->globalProcessor->SetStates(LUAEVENT_STATE_ABORT);
1641+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetStates(LUAEVENT_STATE_ABORT);
16421642
return 0;
16431643
}
16441644

methods/Mangos/GlobalMethods.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ namespace LuaGlobalFunctions
13941394
int functionRef = luaL_ref(E->L, LUA_REGISTRYINDEX);
13951395
if (functionRef != LUA_REFNIL && functionRef != LUA_NOREF)
13961396
{
1397-
E->eventMgr->globalProcessor->AddEvent(functionRef, min, max, repeats);
1397+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->AddEvent(functionRef, min, max, repeats);
13981398
E->Push(functionRef);
13991399
}
14001400
return 1;
@@ -1415,7 +1415,7 @@ namespace LuaGlobalFunctions
14151415
if (all_Events)
14161416
E->eventMgr->SetState(eventId, LUAEVENT_STATE_ABORT);
14171417
else
1418-
E->eventMgr->globalProcessor->SetState(eventId, LUAEVENT_STATE_ABORT);
1418+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetState(eventId, LUAEVENT_STATE_ABORT);
14191419
return 0;
14201420
}
14211421

@@ -1432,7 +1432,7 @@ namespace LuaGlobalFunctions
14321432
if (all_Events)
14331433
E->eventMgr->SetStates(LUAEVENT_STATE_ABORT);
14341434
else
1435-
E->eventMgr->globalProcessor->SetStates(LUAEVENT_STATE_ABORT);
1435+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetStates(LUAEVENT_STATE_ABORT);
14361436
return 0;
14371437
}
14381438

methods/VMangos/GlobalMethods.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ namespace LuaGlobalFunctions
13901390
int functionRef = luaL_ref(E->L, LUA_REGISTRYINDEX);
13911391
if (functionRef != LUA_REFNIL && functionRef != LUA_NOREF)
13921392
{
1393-
E->eventMgr->globalProcessor->AddEvent(functionRef, min, max, repeats);
1393+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->AddEvent(functionRef, min, max, repeats);
13941394
E->Push(functionRef);
13951395
}
13961396
return 1;
@@ -1411,7 +1411,7 @@ namespace LuaGlobalFunctions
14111411
if (all_Events)
14121412
E->eventMgr->SetState(eventId, LUAEVENT_STATE_ABORT);
14131413
else
1414-
E->eventMgr->globalProcessor->SetState(eventId, LUAEVENT_STATE_ABORT);
1414+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetState(eventId, LUAEVENT_STATE_ABORT);
14151415
return 0;
14161416
}
14171417

@@ -1428,7 +1428,7 @@ namespace LuaGlobalFunctions
14281428
if (all_Events)
14291429
E->eventMgr->SetStates(LUAEVENT_STATE_ABORT);
14301430
else
1431-
E->eventMgr->globalProcessor->SetStates(LUAEVENT_STATE_ABORT);
1431+
E->eventMgr->GetGlobalProcessor(GLOBAL_EVENTS)->SetStates(LUAEVENT_STATE_ABORT);
14321432
return 0;
14331433
}
14341434

0 commit comments

Comments
 (0)