ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_object.C
(Generate patch)

Comparing deliantra/server/server/c_object.C (file contents):
Revision 1.27 by root, Thu Dec 14 04:30:32 2006 UTC vs.
Revision 1.28 by root, Tue Dec 19 05:12:52 2006 UTC

702 if (QUERY_FLAG (tmp, FLAG_STARTEQUIP)) 702 if (QUERY_FLAG (tmp, FLAG_STARTEQUIP))
703 { 703 {
704 sprintf (buf, "You drop the %s.", query_name (tmp)); 704 sprintf (buf, "You drop the %s.", query_name (tmp));
705 new_draw_info (NDI_UNIQUE, 0, op, buf); 705 new_draw_info (NDI_UNIQUE, 0, op, buf);
706 new_draw_info (NDI_UNIQUE, 0, op, "The gods who lent it to you retrieves it."); 706 new_draw_info (NDI_UNIQUE, 0, op, "The gods who lent it to you retrieves it.");
707
707 if (op->type == PLAYER) 708 if (op->type == PLAYER)
708 esrv_del_item (op->contr, tmp->count); 709 esrv_del_item (op->contr, tmp->count);
710
709 tmp->destroy (); 711 tmp->destroy ();
710 fix_player (op); 712 fix_player (op);
711 return; 713 return;
712 } 714 }
713 715
736 fix_player (op); /* This is overkill, fix_player() is called somewhere */ 738 fix_player (op); /* This is overkill, fix_player() is called somewhere */
737 /* in object.c */ 739 /* in object.c */
738 740
739 if (op->type == PLAYER) 741 if (op->type == PLAYER)
740 { 742 {
741 op->contr->socket->update_look = 1;
742 /* Need to update the weight for the player */ 743 /* Need to update the weight for the player */
743 esrv_send_item (op, op); 744 esrv_send_item (op, op);
745 op->contr->socket->floorbox_update ();
744 } 746 }
745 747
746 for (floor = get_map_ob (op->map, op->x, op->y); floor; floor = floor->above) 748 for (floor = get_map_ob (op->map, op->x, op->y); floor; floor = floor->above)
747 if (INVOKE_OBJECT (DROP_ON, floor, ARG_OBJECT (tmp), ARG_OBJECT (op))) 749 if (INVOKE_OBJECT (DROP_ON, floor, ARG_OBJECT (tmp), ARG_OBJECT (op)))
748 return; 750 return;
937 } 939 }
938 } 940 }
939 curinv = nextinv; 941 curinv = nextinv;
940 } 942 }
941 } 943 }
942 op->contr->socket->update_look = 1; 944
945 op->contr->socket->floorbox_update ();
943 946
944/* draw_look(op);*/ 947/* draw_look(op);*/
945 return 0; 948 return 0;
946} 949}
947 950
977 new_draw_info (NDI_UNIQUE, 0, op, "Nothing to drop."); 980 new_draw_info (NDI_UNIQUE, 0, op, "Nothing to drop.");
978 } 981 }
979 if (op->type == PLAYER) 982 if (op->type == PLAYER)
980 { 983 {
981 op->contr->count = 0; 984 op->contr->count = 0;
982 op->contr->socket->update_look = 1; 985 op->contr->socket->floorbox_update ();
983 }; 986 };
984 987
985/* draw_look(op);*/ 988/* draw_look(op);*/
986 return 0; 989 return 0;
987} 990}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines