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

Comparing deliantra/server/common/loader.C (file contents):
Revision 1.158 by root, Fri Apr 30 20:43:18 2010 UTC vs.
Revision 1.162 by root, Fri May 21 00:31:13 2010 UTC

265 type = 0; 265 type = 0;
266 } 266 }
267 267
268 switch (type) 268 switch (type)
269 { 269 {
270 case RANGED:
270 case BOW: 271 case BOW:
271 case WAND: 272 case WAND:
272 case ROD: 273 case ROD:
273 case HORN: 274 case HORN:
274 if (slot [body_range].info != -1) 275 if (slot [body_range].info != -1)
1112 * override values and in c_wiz to mutate values. 1113 * override values and in c_wiz to mutate values.
1113 */ 1114 */
1114int 1115int
1115set_variable (object *op, char *buf) 1116set_variable (object *op, char *buf)
1116{ 1117{
1117 object_thawer f (buf, (AV *)0); 1118 object_thawer f (format ("%s\nend", buf), (AV *)0);
1118 1119
1119 return op->parse_kv (f); 1120 return op->parse_kv (f);
1120} 1121}
1121 1122
1122// compare *op against *arch and output differences 1123// compare *op against *arch and output differences
1506{ 1507{
1507 object_thawer f (filename); 1508 object_thawer f (filename);
1508 1509
1509 for (;;) 1510 for (;;)
1510 { 1511 {
1512 coroapi::cede_to_tick ();
1513
1511 switch (f.kw) 1514 switch (f.kw)
1512 { 1515 {
1513 case KW_region: 1516 case KW_region:
1514 if (!region::read (f)) 1517 if (!region::read (f))
1515 return false; 1518 return false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines