1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_item_c = |
|
|
4 | * "$Id: item.C,v 1.5 2006/09/10 13:43:33 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
22 | |
16 | |
23 | 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 |
24 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | 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> |
28 | */ |
22 | */ |
29 | |
23 | |
30 | /** |
24 | /** |
31 | * \file |
25 | * \file |
32 | * Client/server logic. |
26 | * Client/server logic. |
… | |
… | |
706 | look_at (object *op, int dx, int dy) |
700 | look_at (object *op, int dx, int dy) |
707 | { |
701 | { |
708 | object *tmp; |
702 | object *tmp; |
709 | int flag = 0; |
703 | int flag = 0; |
710 | sint16 x, y; |
704 | sint16 x, y; |
711 | mapstruct *m; |
705 | maptile *m; |
712 | |
706 | |
713 | x = op->x + dx; |
707 | x = op->x + dx; |
714 | y = op->y + dy; |
708 | y = op->y + dy; |
715 | |
709 | |
716 | if (out_of_map (op->map, x, y)) |
710 | if (out_of_map (op->map, x, y)) |