ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/special.C
(Generate patch)

Comparing deliantra/server/random_maps/special.C (file contents):
Revision 1.19 by root, Sat Jan 27 00:56:48 2007 UTC vs.
Revision 1.21 by root, Wed Feb 7 02:04:47 2007 UTC

161 int ix, iy, i = -1, tries = 0; 161 int ix, iy, i = -1, tries = 0;
162 maptile *fountain_style = find_style ("/styles/misc", "fountains", -1); 162 maptile *fountain_style = find_style ("/styles/misc", "fountains", -1);
163 163
164 if (!fountain_style) 164 if (!fountain_style)
165 { 165 {
166 LOG (llevError, "unabel to load stylemap /styles/misc fountains\n"); 166 LOG (llevError, "unable to load stylemap /styles/misc fountains\n");
167 return; 167 return;
168 } 168 }
169 169
170 object *fountain = get_archetype ("fountain"); 170 object *fountain = get_archetype ("fountain");
171 object *potion = object::create (); 171 object *potion = object::create ();
193 SET_FLAG (potion, FLAG_NO_PICK); 193 SET_FLAG (potion, FLAG_NO_PICK);
194 SET_FLAG (potion, FLAG_IDENTIFIED); 194 SET_FLAG (potion, FLAG_IDENTIFIED);
195 potion->name = potion->name_pl = "fountain"; 195 potion->name = potion->name_pl = "fountain";
196 potion->x = ix; 196 potion->x = ix;
197 potion->y = iy; 197 potion->y = iy;
198 potion->material = M_ADAMANT; 198 potion->materialname = "adamantium";
199 fountain->x = ix; 199 fountain->x = ix;
200 fountain->y = iy; 200 fountain->y = iy;
201 insert_ob_in_map (fountain, map, NULL, 0); 201 insert_ob_in_map (fountain, map, NULL, 0);
202 insert_ob_in_map (potion, map, NULL, 0); 202 insert_ob_in_map (potion, map, NULL, 0);
203} 203}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines