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.120 by root, Thu Sep 11 12:43:17 2008 UTC vs.
Revision 1.121 by root, Sun Sep 14 23:13:25 2008 UTC

560 case KW_race: f.get_ornull (race); break; 560 case KW_race: f.get_ornull (race); break;
561 case KW_slaying: f.get_ornull (slaying); break; 561 case KW_slaying: f.get_ornull (slaying); break;
562 case KW_tag: f.get_ornull (tag); break; 562 case KW_tag: f.get_ornull (tag); break;
563 563
564 case KW_arch: 564 case KW_arch:
565 {
566 object *tmp = object::read (f); 565 if (object *tmp = object::read (f))
567 tmp->deactivate ();
568
569 { 566 {
567 tmp->deactivate ();
568
570 // was: insert_ob_in_ob (tmp, op); 569 // was: insert_ob_in_ob (tmp, op);
571 // but manually adding it can improve map loading times a lot 570 // but manually adding it can improve map loading times a lot
572 // also, appending instead of prepending keeps the 571 // also, appending instead of prepending keeps the
573 // save ordering the same between repeated load/saves. 572 // save ordering the same between repeated load/saves.
574 // and finally we do not want any funny effects 573 // and finally we do not want any funny effects
591 590
592 tmp->below = 0; 591 tmp->below = 0;
593 tmp->env = this; 592 tmp->env = this;
594 op_inv = tmp; 593 op_inv = tmp;
595 } 594 }
596 }
597 continue; 595 continue;
598 596
599 case KW_other_arch: 597 case KW_other_arch:
600 if (loading_arch == this) 598 if (loading_arch == this)
601 archetype::postpone_arch_ref (loading_arch->other_arch, f.get_str ()); 599 archetype::postpone_arch_ref (loading_arch->other_arch, f.get_str ());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines