Difference for server/swap.c from version 1.7 to 1.8


version 1.7 version 1.8
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_swap_c =   * static char *rcsid_swap_c =
  *    "$Id: swap.c,v 1.7 2001/07/31 06:54:07 mwedel Exp $";   *    "$Id: swap.c,v 1.8 2001/10/14 08:12:37 gros Exp $";
  */   */
   
 /*  /*
Line 111
 
Line 111
   
 void swap_map(mapstruct *map) {  void swap_map(mapstruct *map) {
   player *pl;    player *pl;
   #ifdef PLUGINS
     int evtid;
     CFParm CFP;
   #endif
   if(map->in_memory != MAP_IN_MEMORY) {    if(map->in_memory != MAP_IN_MEMORY) {
     LOG(llevError,"Tried to swap out map which was not in memory.\n");      LOG(llevError,"Tried to swap out map which was not in memory.\n");
     return;      return;
Line 135
 
Line 139
     mapstruct *oldmap = map;      mapstruct *oldmap = map;
   
     LOG(llevDebug,"Resetting map %s.\n",map->path);      LOG(llevDebug,"Resetting map %s.\n",map->path);
   #ifdef PLUGINS
       /* GROS : Here we handle the MAPRESET global event */
       evtid = EVENT_MAPRESET;
       CFP.Value[0] = (void *)(&evtid);
       CFP.Value[1] = (void *)(map->path);
       GlobalEvent(&CFP);
   #endif
     map = map->next;      map = map->next;
     delete_map(oldmap);      delete_map(oldmap);
     return;      return;
Line 237
 
Line 248
   
   mapstruct *m, *oldmap;    mapstruct *m, *oldmap;
   long sec;    long sec;
   #ifdef PLUGINS
     int evtid;
     CFParm CFP;
   #endif
   sec = seconds();    sec = seconds();
   
   m= first_map;    m= first_map;
Line 256
 
Line 270
        }         }
     else {      else {
  LOG(llevDebug,"Resetting map %s.\n",m->path);   LOG(llevDebug,"Resetting map %s.\n",m->path);
   #ifdef PLUGINS
       /* GROS : Here we handle the MAPRESET global event */
       evtid = EVENT_MAPRESET;
       CFP.Value[0] = (void *)(&evtid);
       CFP.Value[1] = (void *)(m->path);
       GlobalEvent(&CFP);
   #endif   
  clean_tmp_map(m);   clean_tmp_map(m);
  oldmap = m;   oldmap = m;
  m = m->next;   m = m->next;


Legend:
line(s) removed in v.1.7 
line(s) changed
 line(s) added in v.1.8

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:51