mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_UpdateDistanceFromFinishLine: Do not destroy distancetofinish value if the player NO CONTESTed
This commit is contained in:
parent
0ac2541eb9
commit
e82082fd06
2 changed files with 7 additions and 2 deletions
|
|
@ -1671,7 +1671,7 @@ void K_drawKartTimestamp(tic_t drawtime, INT32 TX, INT32 TY, INT32 splitflags, U
|
|||
INT32 widthbar = 120, xbar = 160 - widthbar/2, currentx;
|
||||
INT32 barflags = V_SNAPTOBOTTOM|V_SLIDEIN;
|
||||
|
||||
V_DrawScaledPatch(xbar, ybar - 2, barflags|minimaptrans, kp_wouldyoustillcatchmeifiwereaworm);
|
||||
V_DrawScaledPatch(xbar, ybar - 2, barflags, kp_wouldyoustillcatchmeifiwereaworm);
|
||||
|
||||
V_DrawMappedPatch(160 + widthbar/2 - 7, ybar - 7, barflags, faceprefix[stplyr->skin][FACE_MINIMAP], colormap);
|
||||
|
||||
|
|
|
|||
|
|
@ -8592,11 +8592,16 @@ void K_UpdateDistanceFromFinishLine(player_t *const player)
|
|||
}
|
||||
|
||||
// nextwaypoint is now the waypoint that is in front of us
|
||||
if (player->exiting || player->spectator)
|
||||
if ((player->exiting && !(player->pflags & PF_NOCONTEST)) || player->spectator)
|
||||
{
|
||||
// Player has finished, we don't need to calculate this
|
||||
player->distancetofinish = 0U;
|
||||
}
|
||||
else if (player->pflags & PF_NOCONTEST)
|
||||
{
|
||||
// We also don't need to calculate this, but there's also no need to destroy the data...
|
||||
;
|
||||
}
|
||||
else if ((player->currentwaypoint != NULL) && (player->nextwaypoint != NULL) && (finishline != NULL))
|
||||
{
|
||||
const boolean useshortcuts = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue