mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Some adjustments to the position faces. (Currently untested, but I need to merge master in and accidentially did this before that and I still have to compile from scratch for this branch, so...)
This commit is contained in:
parent
d1ac57e4ec
commit
ae47951a2e
1 changed files with 7 additions and 4 deletions
11
src/k_kart.c
11
src/k_kart.c
|
|
@ -6435,8 +6435,10 @@ static boolean K_drawKartPositionFaces(void)
|
||||||
{
|
{
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (playeringame[i] && !completed[i] && players[i].mo && !players[i].spectator
|
if (completed[i] || !playeringame[i] || players[i].spectator || !players[i].mo)
|
||||||
&& (rankplayer[ranklines] < 0 || players[i].kartstuff[k_position] < players[rankplayer[ranklines]].kartstuff[k_position]))
|
continue;
|
||||||
|
|
||||||
|
if (rankplayer[ranklines] < 0 || players[i].kartstuff[k_position] < players[rankplayer[ranklines]].kartstuff[k_position])
|
||||||
{
|
{
|
||||||
rankplayer[ranklines] = i;
|
rankplayer[ranklines] = i;
|
||||||
}
|
}
|
||||||
|
|
@ -6459,7 +6461,7 @@ static boolean K_drawKartPositionFaces(void)
|
||||||
else
|
else
|
||||||
Y -= (9*5);
|
Y -= (9*5);
|
||||||
|
|
||||||
if (strank <= 2) // too close to the top?
|
if (G_BattleGametype() || strank <= 2) // too close to the top, or playing battle?
|
||||||
{
|
{
|
||||||
i = 0;
|
i = 0;
|
||||||
if (ranklines > 5) // could be both...
|
if (ranklines > 5) // could be both...
|
||||||
|
|
@ -6475,7 +6477,8 @@ static boolean K_drawKartPositionFaces(void)
|
||||||
|
|
||||||
for (; i < ranklines; i++)
|
for (; i < ranklines; i++)
|
||||||
{
|
{
|
||||||
if (players[rankplayer[i]].spectator) continue; // Spectators are ignored
|
if (!playeringame[rankplayer[i]]) continue;
|
||||||
|
if (players[rankplayer[i]].spectator) continue;
|
||||||
if (!players[rankplayer[i]].mo) continue;
|
if (!players[rankplayer[i]].mo) continue;
|
||||||
|
|
||||||
bumperx = FACE_X+18;
|
bumperx = FACE_X+18;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue