mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_UpdateTimeStickerMedals: Put an actual message on the sticker where an invalid medal ghost tag is handled
Fixes a function reshuffling error that would have put control flow back in a loop with invalid properties
This commit is contained in:
parent
e7b63a5fad
commit
d1c7a90a7c
1 changed files with 5 additions and 3 deletions
|
|
@ -552,9 +552,11 @@ bademblem:
|
||||||
{
|
{
|
||||||
if (emblem->tag > mapheaderinfo[map]->ghostCount
|
if (emblem->tag > mapheaderinfo[map]->ghostCount
|
||||||
|| mapheaderinfo[map]->ghostBrief[emblem->tag-1] == NULL)
|
|| mapheaderinfo[map]->ghostBrief[emblem->tag-1] == NULL)
|
||||||
goto bademblem;
|
snprintf(stickermedalinfo.targettext, 9, "Invalid ghost tag");
|
||||||
|
else if (mapheaderinfo[map]->ghostBrief[emblem->tag-1]->time == UINT32_MAX)
|
||||||
stickermedalinfo.timetoreach = mapheaderinfo[map]->ghostBrief[emblem->tag-1]->time;
|
snprintf(stickermedalinfo.targettext, 9, "Ghost DNF");
|
||||||
|
else
|
||||||
|
stickermedalinfo.timetoreach = mapheaderinfo[map]->ghostBrief[emblem->tag-1]->time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue