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.4 by root, Mon Sep 4 15:51:24 2006 UTC vs.
Revision 1.5 by root, Mon Sep 4 16:46:32 2006 UTC

555 } 555 }
556 556
557 parse_object (tmp, thawer, map_flags); 557 parse_object (tmp, thawer, map_flags);
558 558
559 if (tmp->arch) 559 if (tmp->arch)
560 {
560 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 }
561 else 574 else
562 { 575 {
563 LOG (llevDebug, "Discarding object without arch: %s\n", 576 LOG (llevDebug, "Discarding object without arch: %s\n",
564 tmp->name ? (const char *) tmp->name : "(null)"); 577 tmp->name ? (const char *) tmp->name : "(null)");
565 free_object (tmp); 578 free_object (tmp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines