From 8e3a3e792e5d0c9ae4012f893bf51fc1715815fe Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Tue, 18 Apr 2017 16:42:42 +0100 Subject: [PATCH] Moved the Race HUD down a little bit, and improved the sound selection. --- src/st_stuff.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 595b9e764..89902fdb9 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -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); }