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.207 by root, Wed Sep 16 23:22:50 2009 UTC vs.
Revision 1.208 by root, Sat Oct 3 18:46:26 2009 UTC

736// move this object to the top of its env's inventory to speed up 736// move this object to the top of its env's inventory to speed up
737// searches for it. 737// searches for it.
738static object * 738static object *
739splay (object *ob) 739splay (object *ob)
740{ 740{
741 if (ob->env && ob->env->inv != ob) 741 if (ob->above && ob->env)
742 { 742 {
743 if (ob->above) ob->above->below = ob->below; 743 if (ob->above) ob->above->below = ob->below;
744 if (ob->below) ob->below->above = ob->above; 744 if (ob->below) ob->below->above = ob->above;
745 745
746 ob->above = 0; 746 ob->above = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines