mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-18 03:22:35 +00:00
Fix some issues with the tab rankings and end screen that bots exposed.
* Laps now have an initial zero instead of being directly indexed from 1, so start counting from there. * Clean up the circumstances under which LAGLESS! is shown next to a name - specifically removing it from both non-netgames in general, and bots in netgames. * Fix `(powertype == -1)` being broken on the intermission drawer, which was especially obvious with bots outside of netgames.
This commit is contained in:
parent
0282615c38
commit
97e261f443
3 changed files with 5 additions and 5 deletions
|
|
@ -3095,7 +3095,7 @@ static void HU_DrawRankings(void)
|
|||
if (G_RaceGametype())
|
||||
{
|
||||
if (circuitmap)
|
||||
tab[scorelines].count = players[i].laps+1;
|
||||
tab[scorelines].count = players[i].laps;
|
||||
else
|
||||
tab[scorelines].count = players[i].realtime;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9434,7 +9434,7 @@ void HU_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, I
|
|||
|
||||
y2 = y;
|
||||
|
||||
if (playerconsole[tab[i].num] == 0 && server_lagless)
|
||||
if (netgame && playerconsole[tab[i].num] == 0 && server_lagless && !players[tab[i].num].bot)
|
||||
{
|
||||
y2 = ( y - 4 );
|
||||
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ void Y_IntermissionDrawer(void)
|
|||
int y2;
|
||||
|
||||
if (data.match.rankingsmode)
|
||||
timeheader = "PWR.LV";
|
||||
timeheader = (powertype != -1 ? "PWR.LV" : "RANK");
|
||||
else
|
||||
timeheader = ((intertype == int_race || (intertype == int_match && battlecapsules)) ? "TIME" : "SCORE");
|
||||
|
||||
|
|
@ -497,7 +497,7 @@ void Y_IntermissionDrawer(void)
|
|||
|
||||
y2 = y;
|
||||
|
||||
if (playerconsole[data.match.num[i]] == 0 && server_lagless)
|
||||
if (netgame && playerconsole[data.match.num[i]] == 0 && server_lagless && !players[data.match.num[i]].bot)
|
||||
{
|
||||
static int alagles_timer = 0;
|
||||
patch_t *alagles;
|
||||
|
|
@ -533,7 +533,7 @@ void Y_IntermissionDrawer(void)
|
|||
|
||||
if (data.match.rankingsmode)
|
||||
{
|
||||
if (!clientpowerlevels[data.match.num[i]][powertype]) // No power level (splitscreen guests)
|
||||
if (powertype != -1 && !clientpowerlevels[data.match.num[i]][powertype]) // No power level (splitscreen guests)
|
||||
STRBUFCPY(strtime, "----");
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue