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.127 by elmex, Mon Jan 29 21:04:32 2007 UTC vs.
Revision 1.129 by root, Wed Feb 7 02:13:06 2007 UTC

911 * object will have no environment. If the object previously had an 911 * object will have no environment. If the object previously had an
912 * environment, the x and y coordinates will be updated to 912 * environment, the x and y coordinates will be updated to
913 * the previous environment. 913 * the previous environment.
914 */ 914 */
915void 915void
916object::remove_slow () 916object::do_remove ()
917{ 917{
918 object *tmp, *last = 0; 918 object *tmp, *last = 0;
919 object *otmp; 919 object *otmp;
920 920
921 if (QUERY_FLAG (this, FLAG_REMOVED)) 921 if (QUERY_FLAG (this, FLAG_REMOVED))
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