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.128 by root, Mon Feb 5 01:24:45 2007 UTC vs.
Revision 1.129 by root, Wed Feb 7 02:13:06 2007 UTC

2615{ 2615{
2616 return map ? map->region (x, y) 2616 return map ? map->region (x, y)
2617 : region::default_region (); 2617 : region::default_region ();
2618} 2618}
2619 2619
2620const materialtype_t *
2621object::dominant_material () const
2622{
2623 if (materialtype_t *mat = name_to_material (materialname))
2624 return mat;
2625
2626 // omfg this is slow, this has to be temporary :)
2627 shstr unknown ("unknown");
2628
2629 return name_to_material (unknown);
2630}
2631

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines