mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
SPB minimap proper order
This commit is contained in:
parent
0afc901d1f
commit
7676dfa713
1 changed files with 13 additions and 10 deletions
23
src/k_kart.c
23
src/k_kart.c
|
|
@ -7538,6 +7538,8 @@ static patch_t *kp_winnernum[NUMPOSFRAMES];
|
|||
static patch_t *kp_facenum[MAXPLAYERS+1];
|
||||
static patch_t *kp_facehighlight[8];
|
||||
|
||||
static patch_t *kp_spbminimap;
|
||||
|
||||
static patch_t *kp_ringsticker[2];
|
||||
static patch_t *kp_ringstickersplit[4];
|
||||
static patch_t *kp_ring[6];
|
||||
|
|
@ -7690,6 +7692,8 @@ void K_LoadKartHUDGraphics(void)
|
|||
kp_facehighlight[i] = (patch_t *) W_CachePatchName(buffer, PU_HUDGFX);
|
||||
}
|
||||
|
||||
kp_spbminimap = W_CachePatchName("SPBMMAP", PU_HUDGFX);
|
||||
|
||||
// Rings & Lives
|
||||
kp_ringsticker[0] = W_CachePatchName("RNGBACKA", PU_HUDGFX);
|
||||
kp_ringsticker[1] = W_CachePatchName("RNGBACKB", PU_HUDGFX);
|
||||
|
|
@ -9669,6 +9673,14 @@ static void K_drawKartMinimap(void)
|
|||
K_drawKartMinimapIcon(players[i].mo->x, players[i].mo->y, x, y, splitflags, kp_wantedreticle, NULL, AutomapPic);
|
||||
}
|
||||
}
|
||||
|
||||
// draw SPB(s?)
|
||||
for (mobj = kitemcap; mobj; mobj = next)
|
||||
{
|
||||
next = mobj->itnext;
|
||||
if (mobj->type == MT_SPB)
|
||||
K_drawKartMinimapIcon(mobj->x, mobj->y, x, y, splitflags, kp_spbminimap, NULL, AutomapPic);
|
||||
}
|
||||
|
||||
// draw our local players here, opaque.
|
||||
splitflags &= ~V_HUDTRANSHALF;
|
||||
|
|
@ -9700,16 +9712,7 @@ static void K_drawKartMinimap(void)
|
|||
if ((G_RaceGametype() && players[localplayers[i]].kartstuff[k_position] == spbplace)
|
||||
|| (G_BattleGametype() && K_IsPlayerWanted(&players[localplayers[i]])))
|
||||
K_drawKartMinimapIcon(players[localplayers[i]].mo->x, players[localplayers[i]].mo->y, x, y, splitflags, kp_wantedreticle, NULL, AutomapPic);
|
||||
}
|
||||
|
||||
// draw SPB(s?)
|
||||
for (mobj = kitemcap; mobj; mobj = next)
|
||||
{
|
||||
next = mobj->itnext;
|
||||
if (mobj->type == MT_SPB)
|
||||
K_drawKartMinimapIcon(mobj->x, mobj->y, x, y, splitflags, kp_ringspblocksmall[14 + leveltime%4 /2], NULL, AutomapPic);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static void K_drawKartStartCountdown(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue