mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18:26 +00:00
shavit-core.sp - fix
This commit is contained in:
parent
91be9b94dd
commit
bd0c2e62fc
@ -2198,8 +2198,9 @@ public int SemiNative_PrintToChat(int client, int formatParam)
|
|||||||
strcopy(sBuffer1, maxLen+1, sBuffer);
|
strcopy(sBuffer1, maxLen+1, sBuffer);
|
||||||
|
|
||||||
int iCut = FindCharInString(sBuffer1, ' ', true);
|
int iCut = FindCharInString(sBuffer1, ' ', true);
|
||||||
strcopy(sBuffer1, iCut, sBuffer); //destLen not iCut+1 because we don't want to include the space at the end of the first message
|
strcopy(sBuffer1, iCut+1, sBuffer);
|
||||||
FormatEx(sBuffer2, maxLen+1, "%s", gB_Protobuf ? sBuffer[iCut]:sBuffer[iCut+1]); //cute way to include space in front for csgo, remove it otherwise
|
|
||||||
|
FormatEx(sBuffer2, maxLen+1, "%s%s%s", (gB_Protobuf ? " ":""), gS_ChatStrings.sText, sBuffer[iCut+1]);
|
||||||
|
|
||||||
//copy/paste of if (!multipleMessages), with a second iteration for sBuffer2
|
//copy/paste of if (!multipleMessages), with a second iteration for sBuffer2
|
||||||
if (client == 0)
|
if (client == 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user