Fix accidental swap of first and last waypoint

This commit is contained in:
MascaraSnake 2020-05-13 09:32:00 +02:00
parent 36843cbfd6
commit aa16bd22f9
1 changed files with 1 additions and 1 deletions

View File

@ -1670,7 +1670,7 @@ void T_PolyObjWaypoint(polywaypoint_t *th)
th->stophere = true;
}
waypoint = (th->direction == -1) ? P_GetFirstWaypoint(th->sequence) : P_GetLastWaypoint(th->sequence);
waypoint = (th->direction == -1) ? P_GetLastWaypoint(th->sequence) : P_GetFirstWaypoint(th->sequence);
}
else if (!waypoint && th->comeback) // Come back to the start
{