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

Function CheckScriptSyntax

Sources/DANAE/ARX_Script.cpp:5827–5839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5825 return TRUE;
5826}
5827BOOL CheckScriptSyntax(INTERACTIVE_OBJ * io)
5828{
5829 if (SYNTAXCHECKING == 0) return TRUE;
5830
5831 long s1 = LaunchScriptCheck(&io->script, io);
5832 LastErrorPopupNO1 = LastErrorPopup;
5833 long s2 = LaunchScriptCheck(&io->over_script, io);
5834 LastErrorPopupNO2 = LastErrorPopup;
5835
5836 if (s1 + s2 < 2) return FALSE;
5837
5838 return TRUE; // no errors.
5839}
5840long Event_Total_Count = 0;
5841
5842void ARX_SCRIPT_Init_Event_Stats()

Callers 2

IOOptionsProcFunction · 0.85

Calls 1

LaunchScriptCheckFunction · 0.85

Tested by

no test coverage detected