| 579 | //************************************************************************************* |
| 580 | //************************************************************************************* |
| 581 | void 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 | //************************************************************************************* |
| 616 | BOOL IsElement(char * seek, char * text) |
no test coverage detected