version 1.47 | | version 1.48 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.47 2002/11/08 08:50:44 garbled Exp $"; | | * "$Id: map.c,v 1.48 2002/11/26 08:57:55 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
| | |
void set_map_reset_time(mapstruct *map) { | | void set_map_reset_time(mapstruct *map) { |
#ifdef MAP_RESET | | |
#ifdef MAP_MAXRESET | | |
if (MAP_RESET_TIMEOUT(map)>MAP_MAXRESET) | | if (MAP_RESET_TIMEOUT(map)>MAP_MAXRESET) |
MAP_WHEN_RESET(map) = seconds() + MAP_MAXRESET; | | MAP_WHEN_RESET(map) = seconds() + MAP_MAXRESET; |
else | | else |
#endif /* MAP_MAXRESET */ | | |
MAP_WHEN_RESET(map) = seconds() + MAP_RESET_TIMEOUT (map); | | MAP_WHEN_RESET(map) = seconds() + MAP_RESET_TIMEOUT (map); |
#else | | |
MAP_WHEN_RESET(map) = (-1); /* Will never be reset */ | | |
#endif | | |
} | | } |
| | |
/* this updates the orig_map->tile_map[tile_num] value after loading | | /* this updates the orig_map->tile_map[tile_num] value after loading |