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.311 by root, Sat Jan 16 13:41:37 2010 UTC vs.
Revision 1.312 by elmex, Sat Mar 20 00:42:08 2010 UTC

514object * 514object *
515find_object (tag_t i) 515find_object (tag_t i)
516{ 516{
517 for_all_objects (op) 517 for_all_objects (op)
518 if (op->count == i) 518 if (op->count == i)
519 return op;
520
521 return 0;
522}
523
524/*
525 * Returns the object which has the uuid equal to the argument.
526 * MOAR VERRRY slow.
527 */
528
529object *
530find_object_uuid (UUID i)
531{
532 for_all_objects (op)
533 if (op->uuid == i)
519 return op; 534 return op;
520 535
521 return 0; 536 return 0;
522} 537}
523 538

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines