mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Merge sub_0(...)
to CGame::DisplayGameText(...)
This commit is contained in:
parent
da400e2f9e
commit
3051333de8
@ -609,17 +609,6 @@ void CGame::ToggleRadar(int iToggle)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void sub_0(PCHAR szString)
|
||||
{
|
||||
while(*szString) {
|
||||
if(*szString >= 1 && *szString < ' ' && *szString != '\n') {
|
||||
*szString = ' ';
|
||||
}
|
||||
szString++;
|
||||
}
|
||||
}
|
||||
|
||||
void CGame::DisplayGameText(char *szStr,int iTime,int iSize)
|
||||
{
|
||||
if(iSize > 200) return;
|
||||
@ -629,7 +618,12 @@ void CGame::DisplayGameText(char *szStr,int iTime,int iSize)
|
||||
memset(szGameTextMessage,0,sizeof(szGameTextMessage)); // not a typo
|
||||
strncpy(szGameTextMessage,szStr,512);
|
||||
|
||||
sub_0(szGameTextMessage);
|
||||
char *str = szGameTextMessage;
|
||||
while(*str != 0) {
|
||||
if(*str >= 1 && *str < ' ' && *str != '\n')
|
||||
*str = ' ';
|
||||
str++;
|
||||
}
|
||||
|
||||
_asm push iSize
|
||||
_asm push iTime
|
||||
|
Loading…
x
Reference in New Issue
Block a user