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

Comparing deliantra/server/common/object.C (file contents):
Revision 1.164 by root, Thu Jul 5 08:10:29 2007 UTC vs.
Revision 1.165 by root, Tue Jul 10 07:31:19 2007 UTC

2640} 2640}
2641 2641
2642const materialtype_t * 2642const materialtype_t *
2643object::dominant_material () const 2643object::dominant_material () const
2644{ 2644{
2645 if (materialtype_t *mat = name_to_material (materialname)) 2645 if (materialtype_t *mt = name_to_material (materialname))
2646 return mat; 2646 return mt;
2647 2647
2648 // omfg this is slow, this has to be temporary :)
2649 shstr unknown ("unknown");
2650
2651 return name_to_material (unknown); 2648 return name_to_material (shstr_unknown);
2652} 2649}
2653 2650
2654void 2651void
2655object::open_container (object *new_container) 2652object::open_container (object *new_container)
2656{ 2653{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines