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.214 by root, Tue Apr 22 07:01:46 2008 UTC vs.
Revision 1.215 by root, Tue Apr 22 07:28:05 2008 UTC

391 return; 391 return;
392 392
393 op->carrying += weight; 393 op->carrying += weight;
394 394
395 if (object *pl = op->visible_to ()) 395 if (object *pl = op->visible_to ())
396 if (pl != op) // player is handled lazily
396 esrv_update_item (UPD_WEIGHT, pl, op); 397 esrv_update_item (UPD_WEIGHT, pl, op);
397 398
398 op = op->env; 399 op = op->env;
399 } 400 }
400} 401}
401 402
422 if (sum != carrying) 423 if (sum != carrying)
423 { 424 {
424 carrying = sum; 425 carrying = sum;
425 426
426 if (object *pl = visible_to ()) 427 if (object *pl = visible_to ())
428 if (pl != this) // player is handled lazily
427 esrv_update_item (UPD_WEIGHT, pl, this); 429 esrv_update_item (UPD_WEIGHT, pl, this);
428 } 430 }
429} 431}
430 432
431/* 433/*
432 * Used by: Server DM commands: dumpbelow, dump. Some error messages. 434 * Used by: Server DM commands: dumpbelow, dump. Some error messages.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines