mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't shoot asterisks off-screen on the join password screen
This commit is contained in:
parent
8a022670bd
commit
96b47d3065
1 changed files with 3 additions and 3 deletions
|
|
@ -1207,11 +1207,11 @@ static inline void CL_DrawConnectionStatus(void)
|
|||
{
|
||||
case CL_CHALLENGE:
|
||||
{
|
||||
char asterisks[65];
|
||||
size_t sl = strlen(cl_challengepassword);
|
||||
char asterisks[33];
|
||||
size_t sl = min(32, strlen(cl_challengepassword));
|
||||
|
||||
memset(asterisks, '*', sl);
|
||||
memset(asterisks+sl, 0, 65-sl);
|
||||
memset(asterisks+sl, 0, 33-sl);
|
||||
|
||||
V_DrawString(BASEVIDWIDTH/2-128, BASEVIDHEIGHT-24, V_MONOSPACE|V_ALLOWLOWERCASE, asterisks);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue