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:
Robert Müller 2024-06-09 21:25:45 +02:00
parent e80d1ab4bd
commit da25863cd2

View file

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