make this less messy

This commit is contained in:
alufolie91 committed 2026-07-01 22:45:17 +02:00
1 parent bf0db67131
commit b8a490b319
2 files changed
+6 -5

No files matched your search

+5 -4
View File
@@ -6325,11 +6325,12 @@ void K_KartUpdatePosition(player_t *player)
if (G_RaceGametype())
{
if ((((players[i].starpostnum) + (numstarposts + 1) * players[i].laps) >
((player->starpostnum) + (numstarposts + 1) * player->laps)))
const INT32 iplayerlaps = (players[i].starpostnum + (numstarposts + 1) * players[i].laps);
const INT32 pplayerlaps = (player->starpostnum + (numstarposts + 1) * player->laps);
if (iplayerlaps > pplayerlaps)
position++;
else if (((players[i].starpostnum) + (numstarposts+1)*players[i].laps) ==
((player->starpostnum) + (numstarposts+1)*player->laps))
else if (iplayerlaps == pplayerlaps)
{
ppcd = pncd = ipcd = incd = 0;
+1 -1
View File
@@ -2684,7 +2684,7 @@ boolean P_SceneryTryMove(mobj_t *thing, fixed_t x, fixed_t y)
if (tmfloorz - thing->z > maxstep)
return false; // too big a step up
}
} while(tryx != x || tryy != y);
} while (tryx != x || tryy != y);
// the move is ok,
// so link the thing into its new position