sets anything that needs to depend on the total number of scripts running
| 6369 | |
| 6370 | // sets anything that needs to depend on the total number of scripts running |
| 6371 | void RefreshScriptStartedStatus() |
| 6372 | { |
| 6373 | int numScriptsStarted = 0; |
| 6374 | |
| 6375 | std::map<int, LuaContextInfo*>::const_iterator iter = luaContextInfo.begin(); |
| 6376 | std::map<int, LuaContextInfo*>::const_iterator end = luaContextInfo.end(); |
| 6377 | while(iter != end) |
| 6378 | { |
| 6379 | LuaContextInfo& info = *iter->second; |
| 6380 | if(info.started) |
| 6381 | numScriptsStarted++; |
| 6382 | ++iter; |
| 6383 | } |
| 6384 | |
| 6385 | // frameadvSkipLagForceDisable = (numScriptsStarted != 0); // disable while scripts are running because currently lag skipping makes lua callbacks get called twice per frame advance |
| 6386 | g_numScriptsStarted = numScriptsStarted; |
| 6387 | } |
| 6388 | |
| 6389 | // sets anything that needs to depend on speed mode or running status of scripts |
| 6390 | void RefreshScriptSpeedStatus() |
no outgoing calls
no test coverage detected