mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
Set string without copying.
This commit is contained in:
parent
75ce27c2d3
commit
1945caa547
@ -232,9 +232,8 @@ void CHudHalloween::MessageAdd( int type, float time, char *text )
|
||||
break;
|
||||
case MSG_HALLOWEEN:
|
||||
int youbet = atoi(text);
|
||||
sprintf(tempBuffer, "%s", billymc[youbet]);
|
||||
m_pCustomMsgs[type] = new CCustomMessage(200, 200, 200, ScreenHeight / 2
|
||||
+ (ScreenHeight / 4.5), 1.5, 5, time, tempBuffer);
|
||||
+ (ScreenHeight / 4.5), 1.5, 5, time, billymc[youbet]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user