MCPcopy Create free account
hub / github.com/arx/ArxLibertatis / ARX_SCRIPT_AllowInterScriptExec

Function ARX_SCRIPT_AllowInterScriptExec

Sources/DANAE/ARX_Script.cpp:581–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579//*************************************************************************************
580//*************************************************************************************
581void ARX_SCRIPT_AllowInterScriptExec()
582{
583 static long ppos = 0;
584
585 if ((!PauseScript) && (!EDITMODE) && (!ARXPausedTime))
586 {
587 EVENT_SENDER = NULL;
588
589 long numm = __min(inter.nbmax, 10);
590
591 for (long n = 0; n < numm; n++)
592 {
593 long i = ppos;
594 ppos++;
595
596 if (ppos >= inter.nbmax)
597 {
598 ppos = 0;
599 return;
600 }
601
602 {
603 if (inter.iobj[i] != NULL)
604 if (inter.iobj[i]->GameFlags & GFLAG_ISINTREATZONE)
605 {
606 if (inter.iobj[i]->mainevent[0])
607 SendIOScriptEvent(inter.iobj[i], 0, "", inter.iobj[i]->mainevent);
608 else SendIOScriptEvent(inter.iobj[i], SM_MAIN, "", NULL);
609 }
610 }
611 }
612 }
613}
614//*************************************************************************************
615//*************************************************************************************
616BOOL IsElement(char * seek, char * text)

Callers 1

RenderMethod · 0.85

Calls 1

SendIOScriptEventFunction · 0.85

Tested by

no test coverage detected