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.224 by root, Fri May 2 20:16:24 2008 UTC vs.
Revision 1.226 by root, Sat May 3 08:50:30 2008 UTC

684object * 684object *
685object::clone () 685object::clone ()
686{ 686{
687 object *neu = create (); 687 object *neu = create ();
688 copy_to (neu); 688 copy_to (neu);
689 neu->map = map; // not copied by copy_to
689 return neu; 690 return neu;
690} 691}
691 692
692/* 693/*
693 * If an object with the IS_TURNABLE() flag needs to be turned due 694 * If an object with the IS_TURNABLE() flag needs to be turned due
1159 * appropriately. 1160 * appropriately.
1160 */ 1161 */
1161 pl->close_container (); 1162 pl->close_container ();
1162 1163
1163 //TODO: the floorbox prev/next might need updating 1164 //TODO: the floorbox prev/next might need updating
1164 esrv_del_item (pl->contr, count); 1165 //esrv_del_item (pl->contr, count);
1166 //TODO: update floorbox to preserve ordering
1167 if (pl->contr->ns)
1168 pl->contr->ns->floorbox_update ();
1165 } 1169 }
1166 1170
1167 for (tmp = ms.bot; tmp; tmp = tmp->above) 1171 for (tmp = ms.bot; tmp; tmp = tmp->above)
1168 { 1172 {
1169 /* No point updating the players look faces if he is the object 1173 /* No point updating the players look faces if he is the object
1467 1471
1468 op->map->dirty = true; 1472 op->map->dirty = true;
1469 1473
1470 if (object *pl = ms.player ()) 1474 if (object *pl = ms.player ())
1471 //TODO: the floorbox prev/next might need updating 1475 //TODO: the floorbox prev/next might need updating
1472 esrv_send_item (pl, op); 1476 //esrv_send_item (pl, op);
1477 //TODO: update floorbox to preserve ordering
1478 if (pl->contr->ns)
1479 pl->contr->ns->floorbox_update ();
1473 1480
1474 /* If this object glows, it may affect lighting conditions that are 1481 /* If this object glows, it may affect lighting conditions that are
1475 * visible to others on this map. But update_all_los is really 1482 * visible to others on this map. But update_all_los is really
1476 * an inefficient way to do this, as it means los for all players 1483 * an inefficient way to do this, as it means los for all players
1477 * on the map will get recalculated. The players could very well 1484 * on the map will get recalculated. The players could very well

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines