… | |
… | |
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. |
… | |
… | |
700 | look_at (object *op, int dx, int dy) |
700 | look_at (object *op, int dx, int dy) |
701 | { |
701 | { |
702 | object *tmp; |
702 | object *tmp; |
703 | int flag = 0; |
703 | int flag = 0; |
704 | sint16 x, y; |
704 | sint16 x, y; |
705 | mapstruct *m; |
705 | maptile *m; |
706 | |
706 | |
707 | x = op->x + dx; |
707 | x = op->x + dx; |
708 | y = op->y + dy; |
708 | y = op->y + dy; |
709 | |
709 | |
710 | if (out_of_map (op->map, x, y)) |
710 | if (out_of_map (op->map, x, y)) |