mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
K_drawKartMinimap: When the player NO CONTESTs:
- If the player's MT_KART_LEFTOVER is being followed instead of their flung corpse
- Flicker with the object.
- Else, don't draw anything
Fixes the teleporting corpse minimap tracking when you NO CONTEST.
This commit is contained in:
parent
e1b0ad3eaf
commit
e40921bf0d
1 changed files with 22 additions and 4 deletions
26
src/k_hud.c
26
src/k_hud.c
|
|
@ -3754,11 +3754,20 @@ static void K_drawKartMinimap(void)
|
||||||
|
|
||||||
if (mobj->health <= 0 && (players[i].pflags & PF_NOCONTEST))
|
if (mobj->health <= 0 && (players[i].pflags & PF_NOCONTEST))
|
||||||
{
|
{
|
||||||
|
if (P_MobjWasRemoved(mobj->tracer))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobj->tracer->renderflags & RF_DONTDRAW)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
workingPic = kp_nocontestminimap;
|
workingPic = kp_nocontestminimap;
|
||||||
colormap = R_GetTranslationColormap(TC_DEFAULT, mobj->color, GTC_CACHE);
|
colormap = R_GetTranslationColormap(TC_DEFAULT, mobj->color, GTC_CACHE);
|
||||||
|
|
||||||
if (mobj->tracer && !P_MobjWasRemoved(mobj->tracer))
|
mobj = mobj->tracer;
|
||||||
mobj = mobj->tracer;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -3923,11 +3932,20 @@ static void K_drawKartMinimap(void)
|
||||||
|
|
||||||
if (mobj->health <= 0 && (players[localplayers[i]].pflags & PF_NOCONTEST))
|
if (mobj->health <= 0 && (players[localplayers[i]].pflags & PF_NOCONTEST))
|
||||||
{
|
{
|
||||||
|
if (P_MobjWasRemoved(mobj->tracer))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobj->tracer->renderflags & RF_DONTDRAW)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
workingPic = kp_nocontestminimap;
|
workingPic = kp_nocontestminimap;
|
||||||
colormap = R_GetTranslationColormap(TC_DEFAULT, mobj->color, GTC_CACHE);
|
colormap = R_GetTranslationColormap(TC_DEFAULT, mobj->color, GTC_CACHE);
|
||||||
|
|
||||||
if (mobj->tracer && !P_MobjWasRemoved(mobj->tracer))
|
mobj = mobj->tracer;
|
||||||
mobj = mobj->tracer;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue