version 1.51 | | version 1.52 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.51 2001/11/28 04:44:42 michtoen Exp $"; | | * "$Id: main.c,v 1.52 2001/12/04 03:49:18 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
GlobalEvent(&CFP); | | GlobalEvent(&CFP); |
#endif | | #endif |
| | |
| | |
newmap->players++; | | newmap->players++; |
newmap->timeout=0; | | newmap->timeout=0; |
op->enemy = NULL; | | op->enemy = NULL; |
| | |
* Do this after the player is on the new map - otherwise the force swap of the | | * Do this after the player is on the new map - otherwise the force swap of the |
* old map does not work. | | * old map does not work. |
*/ | | */ |
if (oldmap && oldmap != newmap) { | | if (oldmap != newmap) { |
| | /* we are really on a new map. tell it the client */ |
| | if(op->contr->socket.ext2) /* send mapstats cmd to ext2 clients */ |
| | send_mapstats_cmd(op, newmap); |
| | |
| | if (oldmap) /* adjust old map */ |
| | { |
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); |
} | | } |
} | | } |