mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix percentage not being used for console command progress spinner
The percentage of received console commands was not being shown with the progress spinner because the variable `ProgressProps` was not passed to the `RenderProgressSpinner` function.
This commit is contained in:
parent
e80d1ab4bd
commit
da25863cd2
|
@ -1310,7 +1310,7 @@ void CGameConsole::OnRender()
|
|||
float Percentage = Client()->GotRconCommandsPercentage();
|
||||
SProgressSpinnerProperties ProgressProps;
|
||||
ProgressProps.m_Progress = Percentage;
|
||||
Ui()->RenderProgressSpinner(vec2(Screen.w / 4.0f + FONT_SIZE / 2.f, FONT_SIZE), FONT_SIZE / 2.f);
|
||||
Ui()->RenderProgressSpinner(vec2(Screen.w / 4.0f + FONT_SIZE / 2.f, FONT_SIZE), FONT_SIZE / 2.f, ProgressProps);
|
||||
|
||||
char aLoading[128];
|
||||
str_copy(aLoading, Localize("Loading commands…"));
|
||||
|
|
Loading…
Reference in a new issue