version 1.65 | | version 1.66 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.65 2002/09/07 22:08:07 mwedel Exp $"; | | * "$Id: main.c,v 1.66 2002/09/28 07:19:40 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
remove_ob(op); | | remove_ob(op); |
| | |
if (oldmap) { | | if (oldmap) { |
| | if (!op->contr->hidden) |
oldmap->players--; | | oldmap->players--; |
if (oldmap->players <= 0) { /* can be less than zero due to errors in tracking this */ | | if (oldmap->players <= 0) { /* can be less than zero due to errors in tracking this */ |
set_map_timeout(oldmap); | | set_map_timeout(oldmap); |
| | |
GlobalEvent(&CFP); | | GlobalEvent(&CFP); |
#endif | | #endif |
| | |
| | if (!op->contr->hidden) |
newmap->players++; | | newmap->players++; |
| | |
newmap->timeout=0; | | newmap->timeout=0; |
op->enemy = NULL; | | op->enemy = NULL; |
| | |
| | |
if(enough_elapsed_time()) { | | if(enough_elapsed_time()) { |
for(map=first_map;map!=NULL;map=map->next) { | | for(map=first_map;map!=NULL;map=map->next) { |
if(map->in_memory == MAP_IN_MEMORY) { | | if(map->in_memory == MAP_IN_MEMORY) { |
if(players_on_map(map)) | | if(players_on_map(map,TRUE)) |
process_events(map); | | process_events(map); |
} | | } |
} | | } |