Difference for server/c_wiz.c from version 1.86 to 1.87


version 1.86 version 1.87
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.86 2006/07/25 21:49:28 ryo_saeba Exp $";   *   "$Id: c_wiz.c,v 1.87 2006/07/26 15:20:23 gros Exp $";
  */   */
   
 /*  /*
Line 1288
 
Line 1288
          * players or wiz's.           * players or wiz's.
          */           */
         if (op->map == m) {          if (op->map == m) {
               if (strncmp(m->path, "/random/", 8)==0) {
               /* This is not a very satisfying solution - it would be much better
                * to recreate a random map with the same seed value as the old one.
                * Unfortunately, I think recreating the map would require some
                * knowledge about its 'parent', which appears very non-trivial to
                * me.
                * On the other hand, this should prevent the freeze that this
                * situation caused. - gros, 26th July 2006.
                */
                   new_draw_info(NDI_UNIQUE, 0, op,
                       "You cannot reset a random map when inside it.");
                   return 1;
               }
   
             dummy = get_object();              dummy = get_object();
             dummy->map = NULL;              dummy->map = NULL;
             EXIT_X(dummy) = op->x;              EXIT_X(dummy) = op->x;


Legend:
line(s) removed in v.1.86 
line(s) changed
 line(s) added in v.1.87

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