mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Don't shoot asterisks off-screen on the join password screen
This commit is contained in:
parent
ddf2db8a36
commit
18dba65f17
1 changed files with 3 additions and 3 deletions
|
@ -1207,11 +1207,11 @@ static inline void CL_DrawConnectionStatus(void)
|
||||||
{
|
{
|
||||||
case CL_CHALLENGE:
|
case CL_CHALLENGE:
|
||||||
{
|
{
|
||||||
char asterisks[65];
|
char asterisks[33];
|
||||||
size_t sl = strlen(cl_challengepassword);
|
size_t sl = min(32, strlen(cl_challengepassword));
|
||||||
|
|
||||||
memset(asterisks, '*', sl);
|
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);
|
V_DrawString(BASEVIDWIDTH/2-128, BASEVIDHEIGHT-24, V_MONOSPACE|V_ALLOWLOWERCASE, asterisks);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue