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

View file

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