Moved the Race HUD down a little bit, and improved the sound selection.

This commit is contained in:
toasterbabe 2017-04-18 16:42:42 +01:00
parent 39fa4fea4a
commit 8e3a3e792e
1 changed files with 5 additions and 9 deletions

View File

@ -1488,34 +1488,30 @@ static inline void ST_drawRaceHUD(void)
{
if (leveltime >= TICRATE && leveltime < 5*TICRATE)
{
INT32 height = (BASEVIDHEIGHT/2);
INT32 height = ((3*BASEVIDHEIGHT)>>2) - 8;
INT32 bounce = (leveltime % TICRATE);
patch_t *racenum;
switch (leveltime/TICRATE)
{
case 1:
racenum = race3;
if (!bounce)
S_StartSound(0, sfx_s3ka7);
break;
case 2:
racenum = race2;
if (!bounce)
S_StartSound(0, sfx_s3ka7);
break;
case 3:
racenum = race1;
if (!bounce)
S_StartSound(0, sfx_s3ka7);
break;
default:
racenum = racego;
if (!bounce)
S_StartSound(0, sfx_s3kad);
break;
}
if (bounce < 3)
{
height -= (2 - bounce);
if (!bounce)
S_StartSound(0, ((racenum == racego) ? sfx_s3kad : sfx_s3ka7));
}
V_DrawScaledPatch(SCX((BASEVIDWIDTH - SHORT(racenum->width))/2), (INT32)(SCY(height)), V_NOSCALESTART, racenum);
}