summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-25 23:38:00 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-25 23:38:00 +0200
commitcc9398df14fe66033f474494395e83287e540800 (patch)
treebf4873095bb3abc6b3715ebae61818e845727f13 /src
parentOnscreen timer (diff)
downloadre3-cc9398df14fe66033f474494395e83287e540800.tar
re3-cc9398df14fe66033f474494395e83287e540800.tar.gz
re3-cc9398df14fe66033f474494395e83287e540800.tar.bz2
re3-cc9398df14fe66033f474494395e83287e540800.tar.lz
re3-cc9398df14fe66033f474494395e83287e540800.tar.xz
re3-cc9398df14fe66033f474494395e83287e540800.tar.zst
re3-cc9398df14fe66033f474494395e83287e540800.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/OnscreenTimer.cpp2
-rw-r--r--src/control/Script7.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/control/OnscreenTimer.cpp b/src/control/OnscreenTimer.cpp
index 002efd98..fc56f7cb 100644
--- a/src/control/OnscreenTimer.cpp
+++ b/src/control/OnscreenTimer.cpp
@@ -221,7 +221,7 @@ COnscreenCounterEntry::ProcessForDisplayCounter()
if (m_bAddDollarPrefix)
sprintf(prefix, "$");
#ifdef FIX_BUGS
- char suffix[3] = { '\0' };
+ char suffix[4] = { '\0' };
#else
char suffix[2] = { '\0' };
#endif
diff --git a/src/control/Script7.cpp b/src/control/Script7.cpp
index a06c43d3..ee197783 100644
--- a/src/control/Script7.cpp
+++ b/src/control/Script7.cpp
@@ -570,7 +570,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
wchar* text = TheText.Get((char*)&CTheScripts::ScriptSpace[m_nIp]); // ???
strncpy(onscreen_str, (char*)&CTheScripts::ScriptSpace[m_nIp], KEY_LENGTH_IN_SCRIPT);
m_nIp += KEY_LENGTH_IN_SCRIPT;
- CUserDisplay::OnscnTimer.AddCounter(var, GET_INTEGER_PARAM(0), onscreen_str, GET_INTEGER_PARAM(1) - 1, -1, nil, 0); // TODO: last params are -1, nil, 0
+ CUserDisplay::OnscnTimer.AddCounter(var, GET_INTEGER_PARAM(0), onscreen_str, GET_INTEGER_PARAM(1) - 1, -1, nil, 0);
return 0;
}
case COMMAND_ADD_SET_PIECE: