Add help text when failing to connect for a while

This commit is contained in:
AJ Martinez 2024-01-12 16:20:12 -07:00
parent 352fd87537
commit 74ab21ecee

View file

@ -732,7 +732,13 @@ static inline void CL_DrawConnectionStatus(void)
break;
#endif
default:
cltext = M_GetText("Connecting to server...");
cltext = M_GetText("Attempting to connect...");
if (I_GetTime() - firstconnectattempttime > 15*TICRATE)
{
V_DrawCenteredString(BASEVIDWIDTH/2, 16, V_YELLOWMAP, "This is taking much longer than usual.");
V_DrawCenteredString(BASEVIDWIDTH/2, 16+8, V_YELLOWMAP, "Are you sure you've got the right IP?");
V_DrawCenteredString(BASEVIDWIDTH/2, 16+16, V_YELLOWMAP, "The host may need to forward port 5029 UDP.");
}
break;
}
V_DrawCenteredString(BASEVIDWIDTH/2, BASEVIDHEIGHT-16-24, V_YELLOWMAP, cltext);