K_DoIngameRespawn: Ring Shooter-induced lightsnake always starts from the previous SPAWNPOINT waypoint, not the previous waypoint in general

This commit is contained in:
toaster 2023-04-14 17:53:21 +01:00 committed by Sally Coolatta
parent 5917861d17
commit 5b348ee195

View file

@ -178,9 +178,11 @@ void K_DoIngameRespawn(player_t *player)
if (player->respawn.fromRingShooter == true)
{
waypoint_t *prevWP = player->respawn.wp;
if (prevWP->numprevwaypoints > 0)
while (prevWP->numprevwaypoints > 0)
{
prevWP = prevWP->prevwaypoints[0];
if (K_GetWaypointIsSpawnpoint(prevWP) == true)
break;
}
const UINT32 dist = (player->airtime * 48);