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

Function SetAutoWaypoint

Descent3/Player.cpp:3822–3835  ·  view source on GitHub ↗

Sets the player's waypoint to the one in the specified room

Source from the content-addressed store, hash-verified

3820
3821// Sets the player's waypoint to the one in the specified room
3822void SetAutoWaypoint(object *objp) {
3823 ASSERT(objp->type == OBJ_PLAYER);
3824
3825 // Get the player we're setting
3826 player *pp = &Players[objp->id];
3827
3828 if (!OBJECT_OUTSIDE(objp)) {
3829 // delete the next two lines
3830 if (pp->current_auto_waypoint_room != objp->roomnum) {
3831 mprintf(0, "Setting auto-waypoint in room %d\n", objp->roomnum);
3832 }
3833 pp->current_auto_waypoint_room = objp->roomnum;
3834 }
3835}
3836
3837// Moves the player to his last waypoint
3838void MovePlayerToWaypoint(object *objp) {

Callers 1

DoSpecialPlayerStuffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected