mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 07:22:03 +00:00
Hideous early speedometer
This commit is contained in:
parent
aac35d8e8f
commit
0f754e6beb
1 changed files with 8 additions and 0 deletions
|
@ -3417,6 +3417,12 @@ static void K_DrawKartPositionFaces(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void K_drawKartSpeedometer(void)
|
||||||
|
{
|
||||||
|
fixed_t kmphSpeed = FixedMul(stplyr->speed, 142371)/FRACUNIT; // 2.172409058
|
||||||
|
V_DrawKartString(9, STRINGY(155), 0, va("%3d km/h", kmphSpeed));
|
||||||
|
}
|
||||||
|
|
||||||
void K_drawKartHUD(void)
|
void K_drawKartHUD(void)
|
||||||
{
|
{
|
||||||
// Define the X and Y for each drawn object
|
// Define the X and Y for each drawn object
|
||||||
|
@ -3456,6 +3462,8 @@ void K_drawKartHUD(void)
|
||||||
// Draw the numerical position
|
// Draw the numerical position
|
||||||
K_DrawKartPositionNum(stplyr->kartstuff[k_position]);
|
K_DrawKartPositionNum(stplyr->kartstuff[k_position]);
|
||||||
|
|
||||||
|
K_drawKartSpeedometer();
|
||||||
|
|
||||||
// Plays the music after the starting countdown. This is here since it checks every frame regularly.
|
// Plays the music after the starting countdown. This is here since it checks every frame regularly.
|
||||||
if (leveltime > 157 && leveltime < (TICRATE+1)*7)
|
if (leveltime > 157 && leveltime < (TICRATE+1)*7)
|
||||||
S_ChangeMusicInternal(mapmusname, true);
|
S_ChangeMusicInternal(mapmusname, true);
|
||||||
|
|
Loading…
Reference in a new issue