… | |
… | |
108 | * goes someplace. |
108 | * goes someplace. |
109 | */ |
109 | */ |
110 | void |
110 | void |
111 | enter_player_savebed (object *op) |
111 | enter_player_savebed (object *op) |
112 | { |
112 | { |
113 | object *tmp = object::create (); |
113 | op->player_goto (op->contr->savebed_map, op->contr->bed_x, op->contr->bed_y); |
114 | EXIT_PATH (tmp) = op->contr->savebed_map; |
|
|
115 | EXIT_X (tmp) = op->contr->bed_x; |
|
|
116 | EXIT_Y (tmp) = op->contr->bed_y; |
|
|
117 | op->enter_exit (tmp); |
|
|
118 | tmp->destroy (); |
|
|
119 | } |
114 | } |
120 | |
115 | |
121 | /* |
116 | /* |
122 | * enter_map(): Moves the player and pets from current map (if any) to |
117 | * enter_map(): Moves the player and pets from current map (if any) to |
123 | * new map. map, x, y must be set. map is the map we are moving the |
118 | * new map. map, x, y must be set. map is the map we are moving the |