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

Function GetCurrentLine

Sources/DANAE/ARX_Script.cpp:4176–4193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4174HWND LastErrorPopup = NULL;
4175extern long SHOWWARNINGS;
4176long GetCurrentLine(EERIE_SCRIPT * es, long poss)
4177{
4178 long pos = 0;
4179 long linecount = -1;
4180
4181 while ((pos < poss) && (pos < es->size))
4182 {
4183 pos = GotoNextLine(es, pos);
4184
4185 if (pos == -1) return -1;
4186
4187 linecount++;
4188 }
4189
4190 if (linecount == -1) return -1;
4191
4192 return linecount + 1;
4193}
4194long GetLastLineNum(EERIE_SCRIPT * es)
4195{
4196 long pos = 0;

Callers 1

LaunchScriptCheckFunction · 0.85

Calls 1

GotoNextLineFunction · 0.85

Tested by

no test coverage detected