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

Comparing deliantra/server/socket/item.C (file contents):
Revision 1.6 by root, Tue Sep 12 19:20:09 2006 UTC vs.
Revision 1.9 by root, Wed Sep 20 21:53:50 2006 UTC

16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 20
21 The author can be reached via e-mail to crossfire-devel@real-time.com 21 The author can be reached via e-mail to <crossfire@schmorp.de>
22*/ 22*/
23 23
24/** 24/**
25 * \file 25 * \file
26 * Client/server logic. 26 * Client/server logic.
677 int tag; 677 int tag;
678 object *op; 678 object *op;
679 679
680 tag = GetInt_String (data); 680 tag = GetInt_String (data);
681 op = esrv_get_ob_from_count (pl->ob, tag); 681 op = esrv_get_ob_from_count (pl->ob, tag);
682
682 if (!op) 683 if (!op)
683 { 684 {
684 new_draw_info (NDI_UNIQUE, 0, pl->ob, "Could not find object to mark"); 685 new_draw_info (NDI_UNIQUE, 0, pl->ob, "Could not find object to mark");
685 return; 686 return;
686 } 687 }
688
687 pl->mark = op; 689 pl->mark = op;
688 pl->mark_count = op->count;
689 new_draw_info_format (NDI_UNIQUE, 0, pl->ob, "Marked item %s", query_name (op)); 690 new_draw_info_format (NDI_UNIQUE, 0, pl->ob, "Marked item %s", query_name (op));
690} 691}
691 692
692 693
693/** 694/**
700look_at (object *op, int dx, int dy) 701look_at (object *op, int dx, int dy)
701{ 702{
702 object *tmp; 703 object *tmp;
703 int flag = 0; 704 int flag = 0;
704 sint16 x, y; 705 sint16 x, y;
705 mapstruct *m; 706 maptile *m;
706 707
707 x = op->x + dx; 708 x = op->x + dx;
708 y = op->y + dy; 709 y = op->y + dy;
709 710
710 if (out_of_map (op->map, x, y)) 711 if (out_of_map (op->map, x, y))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines