MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ResetWaypoint

Function ResetWaypoint

Descent3/Player.cpp:3771–3778  ·  view source on GitHub ↗

Resets the waypoints (for new level)

Source from the content-addressed store, hash-verified

3769
3770// Resets the waypoints (for new level)
3771void ResetWaypoint() {
3772 // Set global waypoint to first start position
3773 Current_waypoint = 0;
3774
3775 // Clear out all auto-waypoints
3776 for (int i = 0; i < MAX_PLAYERS; i++)
3777 Players[i].current_auto_waypoint_room = -1;
3778}
3779
3780struct waypoint {
3781 vector pos;

Callers 1

StartLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected