mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Loop through all the waypoint mobjs when setting up waypoints always
This means all the mobjs have waypoints setup and debugvisualise can work better.
This commit is contained in:
parent
379ef52c25
commit
7efe868c99
1 changed files with 7 additions and 2 deletions
|
|
@ -1739,8 +1739,13 @@ boolean K_SetupWaypointList(void)
|
||||||
{
|
{
|
||||||
if (K_AllocateWaypointHeap() == true)
|
if (K_AllocateWaypointHeap() == true)
|
||||||
{
|
{
|
||||||
// The waypoint in the waypointcap is going to be considered our first waypoint
|
mobj_t *waypointmobj = NULL;
|
||||||
K_SetupWaypoint(waypointcap);
|
|
||||||
|
// Loop through the waypointcap here so that all waypoints are added to the heap, and allow easier debugging
|
||||||
|
for (waypointmobj = waypointcap; waypointmobj; waypointmobj = waypointmobj->tracer)
|
||||||
|
{
|
||||||
|
K_SetupWaypoint(waypointmobj);
|
||||||
|
}
|
||||||
|
|
||||||
if (!firstwaypoint)
|
if (!firstwaypoint)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue