make reconnect screen count down from 5-1 instead of 4-0

This commit is contained in:
Ewan Green 2024-09-02 13:23:24 -06:00
parent f599449f31
commit 7abad2b8a4

View file

@ -1208,7 +1208,7 @@ void CMenus::RenderPopupFullscreen(CUIRect Screen)
pButtonText = Localize("Ok");
if(Client()->ReconnectTime() > 0)
{
str_format(aBuf, sizeof(aBuf), Localize("Reconnect in %d sec"), (int)((Client()->ReconnectTime() - time_get()) / time_freq()));
str_format(aBuf, sizeof(aBuf), Localize("Reconnect in %d sec"), (int)((Client()->ReconnectTime() - time_get()) / time_freq()) + 1);
pTitle = Client()->ErrorString();
pExtraText = aBuf;
pButtonText = Localize("Abort");