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.27 by root, Sat Dec 23 06:41:39 2006 UTC vs.
Revision 1.28 by root, Mon Dec 25 11:25:49 2006 UTC

487 SET_FLAG (op, flag); \ 487 SET_FLAG (op, flag); \
488 else \ 488 else \
489 CLEAR_FLAG (op, flag) \ 489 CLEAR_FLAG (op, flag) \
490 490
491int 491int
492parse_object (object *op, object_thawer & thawer, int map_flags) 492parse_object (object *op, object_thawer &thawer, int map_flags)
493{ 493{
494 bool ismore = 0; 494 bool ismore = 0;
495 object *op_inv = op->inv; 495 object *op_inv = op->inv;
496 496
497 for (;;) 497 for (;;)
502 { 502 {
503 case KW_Object: // uppercase alias 503 case KW_Object: // uppercase alias
504 case KW_object: 504 case KW_object:
505 thawer.get (op->name); 505 thawer.get (op->name);
506 506
507 if (op->arch != NULL) 507 if (op->arch)
508 op->arch->name = op->name; 508 op->arch->name = op->name;
509 509
510 break; 510 break;
511 511
512 case KW_uuid: 512 case KW_uuid:
1062 * LO_NEWFILE (2): This is the first read from a particular file, so the buffers should 1062 * LO_NEWFILE (2): This is the first read from a particular file, so the buffers should
1063 * be reset. 1063 * be reset.
1064 * LO_NOREAD (3): Reset the buffers, but don't read from it. (op can be null) 1064 * LO_NOREAD (3): Reset the buffers, but don't read from it. (op can be null)
1065 * 1065 *
1066 */ 1066 */
1067
1068int 1067int
1069load_object (object_thawer & fp, object *op, int map_flags) 1068load_object (object_thawer &fp, object *op, int map_flags)
1070{ 1069{
1071 return parse_object (op, fp, map_flags); 1070 return parse_object (op, fp, map_flags);
1072} 1071}
1073
1074 1072
1075/* This takes a buffer, scans it for variables, and sets those variables 1073/* This takes a buffer, scans it for variables, and sets those variables
1076 * as appropriate in op. 1074 * as appropriate in op.
1077 * 1075 *
1078 * This function appears to be used in only 2 places - in crossedit to 1076 * This function appears to be used in only 2 places - in crossedit to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines