Onscreen timer

This commit is contained in:
Nikolay Korolev
2021-08-26 00:34:31 +03:00
parent d750a1101b
commit 9187873396
9 changed files with 229 additions and 84 deletions

View File

@@ -190,7 +190,7 @@ int8 CRunningScript::ProcessCommands300To399(int32 command)
{
uint16 counter = (uint8*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL) - CTheScripts::ScriptSpace;
CollectParameters(&m_nIp, 1);
CUserDisplay::OnscnTimer.AddCounter(counter, GET_INTEGER_PARAM(0), nil, 0);
CUserDisplay::OnscnTimer.AddCounter(counter, GET_INTEGER_PARAM(0), nil, 0, -1, nil, 0);
return 0;
}
case COMMAND_CLEAR_ONSCREEN_COUNTER: