Merge pull request #8888 from dobrykafe/pr-fix-updater

Add missing parentheses in updater code
This commit is contained in:
Dennis Felsing 2024-09-03 11:17:51 +00:00 committed by GitHub
commit 51c0b4dafc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3310,7 +3310,7 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
} }
} }
else if(State >= IUpdater::GETTING_MANIFEST && State < IUpdater::NEED_RESTART) else if(State >= IUpdater::GETTING_MANIFEST && State < IUpdater::NEED_RESTART)
str_copy(aBuf, Localize("Updating…"); str_copy(aBuf, Localize("Updating…"));
else if(State == IUpdater::NEED_RESTART) else if(State == IUpdater::NEED_RESTART)
{ {
str_copy(aBuf, Localize("DDNet Client updated!")); str_copy(aBuf, Localize("DDNet Client updated!"));
@ -3318,7 +3318,7 @@ void CMenus::RenderSettingsDDNet(CUIRect MainView)
} }
else else
{ {
str_copy(aBuf, Localize("No updates available"); str_copy(aBuf, Localize("No updates available"));
UpdaterRect.VSplitLeft(TextRender()->TextWidth(14.0f, aBuf, -1, -1.0f) + 10.0f, &UpdaterRect, &Button); UpdaterRect.VSplitLeft(TextRender()->TextWidth(14.0f, aBuf, -1, -1.0f) + 10.0f, &UpdaterRect, &Button);
Button.VSplitLeft(100.0f, &Button, nullptr); Button.VSplitLeft(100.0f, &Button, nullptr);
static CButtonContainer s_ButtonUpdate; static CButtonContainer s_ButtonUpdate;