mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8882 from ewancg/master
make reconnect screen count down from 5-1 instead of 4-0
This commit is contained in:
commit
8f79d4252c
|
@ -1208,7 +1208,7 @@ void CMenus::RenderPopupFullscreen(CUIRect Screen)
|
||||||
pButtonText = Localize("Ok");
|
pButtonText = Localize("Ok");
|
||||||
if(Client()->ReconnectTime() > 0)
|
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();
|
pTitle = Client()->ErrorString();
|
||||||
pExtraText = aBuf;
|
pExtraText = aBuf;
|
||||||
pButtonText = Localize("Abort");
|
pButtonText = Localize("Abort");
|
||||||
|
|
Loading…
Reference in a new issue