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.3 by root, Mon Sep 4 13:55:54 2006 UTC vs.
Revision 1.5 by root, Mon Sep 4 16:46:32 2006 UTC

509 { 509 {
510 keyword kw = thawer.get_kv (); 510 keyword kw = thawer.get_kv ();
511 511
512 switch (kw) 512 switch (kw)
513 { 513 {
514 case KW_Object: // uppercase alias
514 case KW_object: 515 case KW_object:
515 thawer.get (op->name); 516 thawer.get (op->name);
516 517
517 if (op->arch != NULL) 518 if (op->arch != NULL)
518 op->arch->name = op->name; 519 op->arch->name = op->name;
554 } 555 }
555 556
556 parse_object (tmp, thawer, map_flags); 557 parse_object (tmp, thawer, map_flags);
557 558
558 if (tmp->arch) 559 if (tmp->arch)
560 {
559 insert_ob_in_ob (tmp, op); 561 // was: insert_ob_in_ob (tmp, op);
562 // but manually addint it can improve map loading times a lot
563 tmp->env = op;
564
565 if (!op->inv)
566 op->inv = tmp;
567 else
568 {
569 tmp->below = op->inv;
570 tmp->below->above = tmp;
571 op->inv = tmp;
572 }
573 }
560 else 574 else
561 { 575 {
562 LOG (llevDebug, "Discarding object without arch: %s\n", 576 LOG (llevDebug, "Discarding object without arch: %s\n",
563 tmp->name ? (const char *) tmp->name : "(null)"); 577 tmp->name ? (const char *) tmp->name : "(null)");
564 free_object (tmp); 578 free_object (tmp);
632 op->face = 0; 646 op->face = 0;
633 break; 647 break;
634 648
635 case KW_x: thawer.get (op->x); break; 649 case KW_x: thawer.get (op->x); break;
636 case KW_y: thawer.get (op->y); break; 650 case KW_y: thawer.get (op->y); break;
651 case KW_Str: // uppercase alias
637 case KW_str: thawer.get (op->stats.Str); break; 652 case KW_str: thawer.get (op->stats.Str); break;
653 case KW_Dex: // uppercase alias
638 case KW_dex: thawer.get (op->stats.Dex); break; 654 case KW_dex: thawer.get (op->stats.Dex); break;
655 case KW_Con: // uppercase alias
639 case KW_con: thawer.get (op->stats.Con); break; 656 case KW_con: thawer.get (op->stats.Con); break;
657 case KW_Wis: // uppercase alias
640 case KW_wis: thawer.get (op->stats.Wis); break; 658 case KW_wis: thawer.get (op->stats.Wis); break;
659 case KW_Cha: // uppercase alias
641 case KW_cha: thawer.get (op->stats.Cha); break; 660 case KW_cha: thawer.get (op->stats.Cha); break;
661 case KW_Int: // uppercase alias
642 case KW_int: thawer.get (op->stats.Int); break; 662 case KW_int: thawer.get (op->stats.Int); break;
663 case KW_Pow: // uppercase alias
643 case KW_pow: thawer.get (op->stats.Pow); break; 664 case KW_pow: thawer.get (op->stats.Pow); break;
644 case KW_hp: thawer.get (op->stats.hp); break; 665 case KW_hp: thawer.get (op->stats.hp); break;
645 case KW_maxhp: thawer.get (op->stats.maxhp); break; 666 case KW_maxhp: thawer.get (op->stats.maxhp); break;
646 case KW_sp: thawer.get (op->stats.sp); break; 667 case KW_sp: thawer.get (op->stats.sp); break;
647 case KW_maxsp: thawer.get (op->stats.maxsp); break; 668 case KW_maxsp: thawer.get (op->stats.maxsp); break;
968 989
969 case KW_editable: 990 case KW_editable:
970 case KW_editor_folder: 991 case KW_editor_folder:
971 break; 992 break;
972 993
994 case KW_More: // uppercase alias
973 case KW_more: 995 case KW_more:
974 /* We need to record that this is a multipart object, 996 /* We need to record that this is a multipart object,
975 * so the calling function can glue things back together 997 * so the calling function can glue things back together
976 */ 998 */
977 ismore = 1; 999 ismore = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines