version 1.26 | | version 1.27 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.26 2001/02/23 06:06:35 mwedel Exp $"; | | * "$Id: main.c,v 1.27 2001/02/27 03:41:25 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return (path); | | return (path); |
} | | } |
| | |
| | /* All this really is is a glorified remove_object that also updates |
| | * the counts on the map if needed. |
| | */ |
| | void leave_map(object *op) |
| | { |
| | mapstruct *oldmap = op->map; |
| | |
| | remove_ob(op); |
| | |
| | if (oldmap) { |
| | oldmap->players--; |
| | if (oldmap->players <= 0) { /* can be less than zero due to errors in tracking this */ |
| | set_map_timeout(oldmap); |
| | } |
| | } |
| | } |
| | |
/* | | /* |
* enter_map(): Moves the player and pets from current map (if any) to | | * enter_map(): Moves the player and pets from current map (if any) to |
* new map. map, x, y must be set. map is the map we are moving the | | * new map. map, x, y must be set. map is the map we are moving the |