Fix waypoint related crashes in battle mode
This commit is contained in:
parent
02ba3e2557
commit
080ace7b91
2 changed files with 7 additions and 1 deletions
|
|
@ -5042,6 +5042,12 @@ static void K_drawKartMinimap(void)
|
|||
|
||||
if (cv_kartdebugwaypoints.value != 0)
|
||||
{
|
||||
if (!(gametypes[gametype]->rules & GTR_CIRCUIT))
|
||||
return;
|
||||
|
||||
if (waypointcap == NULL)
|
||||
return;
|
||||
|
||||
size_t idx;
|
||||
|
||||
for (idx = 0; idx < K_GetNumWaypoints(); ++idx)
|
||||
|
|
|
|||
|
|
@ -12582,7 +12582,7 @@ void P_AfterPlayerSpawn(INT32 playernum)
|
|||
P_CheckGravity(mobj, false);
|
||||
|
||||
// set the player's starting waypoint
|
||||
if (!K_UsingLegacyCheckpoints())
|
||||
if (!K_UsingLegacyCheckpoints() && (gametypes[gametype]->rules & GTR_CIRCUIT) && waypointcap != NULL)
|
||||
p->currentwaypoint = K_GetSpawnWaypointForMobj(p->mo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue