Sets the player's waypoint to the one in the specified room
| 3820 | |
| 3821 | // Sets the player's waypoint to the one in the specified room |
| 3822 | void 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 |
| 3838 | void MovePlayerToWaypoint(object *objp) { |
no outgoing calls
no test coverage detected