Difference for random_maps/treasure.c from version 1.17 to 1.18


version 1.17 version 1.18
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_treasure_c =   * static char *rcsid_treasure_c =
  *   "$Id: treasure.c,v 1.17 2001/07/14 04:08:06 mwedel Exp $";   *   "$Id: treasure.c,v 1.18 2001/10/07 06:45:40 mwedel Exp $";
  */   */
   
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
   
     Copyright (C) 2001 Mark Wedel      Copyright (C) 2001 Mark Wedel & Crossfire Development Team
     Copyright (C) 1992 Frank Tore Johansen      Copyright (C) 1992 Frank Tore Johansen
   
     This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
Line 23
 
Line 23
     along with this program; if not, write to the Free Software      along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
     The author can be reached via e-mail to mwedel@scruz.net      The authors can be reached via e-mail at crossfire-devel@real-time.com
 */  */
   
 /*  placing treasure in maps, where appropriate.  */  /*  placing treasure in maps, where appropriate.  */
Line 234
 
Line 234
   
   if((treasureoptions & KEYREQUIRED)&&n_treasures>1) {    if((treasureoptions & KEYREQUIRED)&&n_treasures>1) {
     char keybuf[256];      char keybuf[256];
     sprintf(keybuf,"%d",RANDOM());      sprintf(keybuf,"%d",(int)RANDOM());
     the_chest->slaying = add_string(keybuf);      the_chest->slaying = add_string(keybuf);
     keyplace(map,x,y,keybuf,PASS_DOORS,1,RP);      keyplace(map,x,y,keybuf,PASS_DOORS,1,RP);
   }    }
Line 691
 
Line 691
       free_object(door);        free_object(door);
       doorlist[i]=new_door;        doorlist[i]=new_door;
       insert_ob_in_map(new_door,map,NULL,0);        insert_ob_in_map(new_door,map,NULL,0);
       sprintf(keybuf,"%d",RANDOM());        sprintf(keybuf,"%d",(int)RANDOM());
       new_door->slaying = add_string(keybuf);        new_door->slaying = add_string(keybuf);
       keyplace(map,new_door->x,new_door->y,keybuf,NO_PASS_DOORS,2,RP);        keyplace(map,new_door->x,new_door->y,keybuf,NO_PASS_DOORS,2,RP);
     }      }


Legend:
line(s) removed in v.1.17 
line(s) changed
 line(s) added in v.1.18

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