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.26 by root, Mon Sep 11 11:46:52 2006 UTC vs.
Revision 1.27 by root, Mon Sep 11 12:08:45 2006 UTC

1 1
2/* 2/*
3 * static char *rcsid_object_c = 3 * static char *rcsid_object_c =
4 * "$Id: object.C,v 1.26 2006/09/11 11:46:52 root Exp $"; 4 * "$Id: object.C,v 1.27 2006/09/11 12:08:45 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
891 /* if the object is being removed, we can't make intelligent 891 /* if the object is being removed, we can't make intelligent
892 * decisions, because remove_ob can't really pass the object 892 * decisions, because remove_ob can't really pass the object
893 * that is being removed. 893 * that is being removed.
894 */ 894 */
895 else if (action == UP_OBJ_CHANGE || action == UP_OBJ_REMOVE) 895 else if (action == UP_OBJ_CHANGE || action == UP_OBJ_REMOVE)
896 {
897 update_now = 1; 896 update_now = 1;
898 }
899 else if (action == UP_OBJ_FACE) 897 else if (action == UP_OBJ_FACE)
900 {
901 /* Nothing to do for that case */ 898 /* Nothing to do for that case */;
902 }
903 else 899 else
904 {
905 LOG (llevError, "update_object called with invalid action: %d\n", action); 900 LOG (llevError, "update_object called with invalid action: %d\n", action);
906 }
907 901
908 if (update_now) 902 if (update_now)
909 { 903 {
910 SET_MAP_FLAGS (op->map, op->x, op->y, flags | P_NO_ERROR | P_NEED_UPDATE); 904 SET_MAP_FLAGS (op->map, op->x, op->y, flags | P_NO_ERROR | P_NEED_UPDATE);
911 update_position (op->map, op->x, op->y); 905 update_position (op->map, op->x, op->y);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines