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

Comparing deliantra/server/include/object.h (file contents):
Revision 1.96 by root, Wed Feb 7 02:04:46 2007 UTC vs.
Revision 1.97 by root, Wed Feb 7 02:13:06 2007 UTC

304 { 304 {
305 return weight * number_of (); 305 return weight * number_of ();
306 } 306 }
307 307
308 // return the dominant material of this item, always return something 308 // return the dominant material of this item, always return something
309 materialtype_t *dominant_material () const; 309 const materialtype_t *dominant_material () const;
310 310
311 uint64 volume () const 311 uint64 volume () const
312 { 312 {
313 return total_weight () / dominant_material ()->density; 313 return total_weight () / dominant_material ()->density;
314 } 314 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines