mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Removed 'Speed' label for speedometer when being displayed
This commit is contained in:
parent
cfece2f55d
commit
9cff22b55c
1 changed files with 1 additions and 3 deletions
|
@ -1456,10 +1456,9 @@ SCR_DrawSpeed(void) {
|
||||||
float speed, speedxy; // speed, horizontal ground speed
|
float speed, speedxy; // speed, horizontal ground speed
|
||||||
GetPlayerSpeed(&speed, &speedxy);
|
GetPlayerSpeed(&speed, &speedxy);
|
||||||
|
|
||||||
// Assuming viddef.width is the width of the screen
|
|
||||||
float scale = SCR_GetConsoleScale();
|
float scale = SCR_GetConsoleScale();
|
||||||
char str[64];
|
char str[64];
|
||||||
snprintf(str, sizeof(str), "Speed: %7.2f (%7.2f) QU/s", speed, speedxy);
|
snprintf(str, sizeof(str), "%6.2f (%6.2f) QU/s", speed, speedxy);
|
||||||
|
|
||||||
int yPos = 0;
|
int yPos = 0;
|
||||||
// If showfps is on, position the speedometer underneath it
|
// If showfps is on, position the speedometer underneath it
|
||||||
|
@ -1469,7 +1468,6 @@ SCR_DrawSpeed(void) {
|
||||||
yPos = scale * 20;
|
yPos = scale * 20;
|
||||||
|
|
||||||
DrawStringScaled(viddef.width - scale * (strlen(str) * 8 + 2), yPos, str, scale);
|
DrawStringScaled(viddef.width - scale * (strlen(str) * 8 + 2), yPos, str, scale);
|
||||||
//Unsure if these are necessary
|
|
||||||
SCR_AddDirtyPoint(viddef.width - scale * (strlen(str) * 8 + 2), yPos);
|
SCR_AddDirtyPoint(viddef.width - scale * (strlen(str) * 8 + 2), yPos);
|
||||||
SCR_AddDirtyPoint(viddef.width, yPos);
|
SCR_AddDirtyPoint(viddef.width, yPos);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue