From 92091a44252a10d6a397faa8aa490ae39a559d65 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 20 Feb 2018 11:55:28 +0000 Subject: [PATCH] CON: Change OSD_Printf to initprintf for addlog and addlogvar git-svn-id: https://svn.eduke32.com/eduke32@6681 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gameexec.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index 610ecd66d..8ede8d2f2 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -3906,7 +3906,7 @@ finish_qsprintf: { insptr++; - OSD_Printf(OSDTEXT_GREEN "CONLOG: L=%d\n",g_errorLineNum); + initprintf(OSDTEXT_GREEN "CONLOG: L=%d\n",g_errorLineNum); continue; } @@ -3939,7 +3939,7 @@ finish_qsprintf: index=Gv_GetVarX(*insptr++); if (EDUKE32_PREDICT_TRUE((unsigned)index < (unsigned)aGameArrays[lVarID].size)) { - OSD_Printf(OSDTEXT_GREEN "CONLOGVAR: L=%d %s[%d] =%d\n", g_errorLineNum, + initprintf(OSDTEXT_GREEN "CONLOGVAR: L=%d %s[%d] =%d\n", g_errorLineNum, aGameArrays[lVarID].szLabel, index, (int32_t)(m*Gv_GetArrayValue(lVarID, index))); continue; @@ -3964,7 +3964,7 @@ finish_qsprintf: Gv_GetVarX(*insptr++); continue; } - OSD_Printf(OSDTEXT_GREEN "CONLOGVAR: L=%d %d %d\n",g_errorLineNum,index,Gv_GetVar(*insptr++,index,vm.playerNum)); + initprintf(OSDTEXT_GREEN "CONLOGVAR: L=%d %d %d\n",g_errorLineNum,index,Gv_GetVar(*insptr++,index,vm.playerNum)); continue; } } @@ -4003,7 +4003,7 @@ finish_qsprintf: Bstrcat(tempbuf, szBuf); Bsprintf(szBuf, " =%d\n", Gv_GetVarX(lVarID) * m); Bstrcat(tempbuf, szBuf); - OSD_Printf(OSDTEXT_GREEN "%s", tempbuf); + initprintf(OSDTEXT_GREEN "%s", tempbuf); insptr++; continue; }