--- deliantra/server/random_maps/treasure.C 2006/08/29 08:01:36 1.2 +++ deliantra/server/random_maps/treasure.C 2006/09/03 00:18:41 1.3 @@ -1,6 +1,6 @@ /* * static char *rcsid_treasure_c = - * "$Id: treasure.C,v 1.2 2006/08/29 08:01:36 root Exp $"; + * "$Id: treasure.C,v 1.3 2006/09/03 00:18:41 root Exp $"; */ /* @@ -237,7 +237,7 @@ if((treasureoptions & KEYREQUIRED)&&n_treasures>1) { char keybuf[256]; sprintf(keybuf,"%d",(int)RANDOM()); - the_chest->slaying = add_string(keybuf); + the_chest->slaying = keybuf; keyplace(map,x,y,keybuf,PASS_DOORS,1,RP); } @@ -290,8 +290,7 @@ /* get a key and set its keycode */ the_key = get_archetype("key2"); - the_key->slaying = add_string(keycode); - + the_key->slaying = keycode; if(door_flag==PASS_DOORS) { int tries=0; @@ -704,7 +703,7 @@ doorlist[i]=new_door; insert_ob_in_map(new_door,map,NULL,0); sprintf(keybuf,"%d",(int)RANDOM()); - new_door->slaying = add_string(keybuf); + new_door->slaying = keybuf; keyplace(map,new_door->x,new_door->y,keybuf,NO_PASS_DOORS,2,RP); } }