Merge pull request #8882 from ewancg/master

make reconnect screen count down from 5-1 instead of 4-0
This commit is contained in:
Dennis Felsing 2024-09-02 21:37:07 +00:00 committed by GitHub
commit 8f79d4252c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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");