mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ring Shooter: do not go backward, go straight to respawn waypoint
There was a bug here that could drop you at the finish
line waypoint. That could be bad because of sight check
discrepancy (see 99656765e).
This commit is contained in:
parent
99656765e5
commit
eed5ada28c
1 changed files with 0 additions and 8 deletions
|
|
@ -203,15 +203,7 @@ void K_DoIngameRespawn(player_t *player)
|
|||
{
|
||||
if (player->respawn.fromRingShooter == true)
|
||||
{
|
||||
waypoint_t *finishline = K_GetFinishLineWaypoint();
|
||||
waypoint_t *prevWP = player->respawn.wp;
|
||||
// Laps don't decrement while respawning, so don't cross behind the finish line
|
||||
while (prevWP->numprevwaypoints > 0 && prevWP != finishline)
|
||||
{
|
||||
prevWP = prevWP->prevwaypoints[0];
|
||||
if (K_GetWaypointIsSpawnpoint(prevWP) == true)
|
||||
break;
|
||||
}
|
||||
|
||||
const UINT32 dist = (player->airtime * 48);
|
||||
player->respawn.distanceleft = (dist * mapobjectscale) / FRACUNIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue