mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
K_GetPlayerNextWaypoint: use player's current waypoint as a hint
Improves best waypoint search time on huge maps with many waypoints, such as City Escape.
This commit is contained in:
parent
71626dbc76
commit
bd7613cd09
1 changed files with 1 additions and 1 deletions
|
|
@ -8358,7 +8358,7 @@ static waypoint_t *K_GetPlayerNextWaypoint(player_t *player)
|
||||||
|
|
||||||
if ((player != NULL) && (player->mo != NULL) && (P_MobjWasRemoved(player->mo) == false))
|
if ((player != NULL) && (player->mo != NULL) && (P_MobjWasRemoved(player->mo) == false))
|
||||||
{
|
{
|
||||||
waypoint_t *waypoint = K_GetBestWaypointForMobj(player->mo, NULL);
|
waypoint_t *waypoint = K_GetBestWaypointForMobj(player->mo, player->currentwaypoint);
|
||||||
boolean updaterespawn = false;
|
boolean updaterespawn = false;
|
||||||
|
|
||||||
// Our current waypoint.
|
// Our current waypoint.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue