1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcsid_item_c = |
3 | * static char *rcsid_item_c = |
4 | * "$Id: item.c,v 1.3 2006/06/11 20:43:35 root Exp $"; |
4 | * "$Id: item.c,v 1.4 2006/06/11 20:45:05 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 | |
… | |
… | |
657 | object *tmp; |
657 | object *tmp; |
658 | int flag=0; |
658 | int flag=0; |
659 | sint16 x,y; |
659 | sint16 x,y; |
660 | mapstruct *m; |
660 | mapstruct *m; |
661 | |
661 | |
662 | |
|
|
663 | if (out_of_map(op->map, op->x+dx, op->y+dy)) return; |
|
|
664 | |
|
|
665 | x = op->x + dx; |
662 | x = op->x + dx; |
666 | y = op->y + dy; |
663 | y = op->y + dy; |
|
|
664 | |
|
|
665 | if (out_of_map(op->map, x, y)) return; |
667 | |
666 | |
668 | m = get_map_from_coord(op->map, &x, &y); |
667 | m = get_map_from_coord(op->map, &x, &y); |
669 | if (!m) return; |
668 | if (!m) return; |
670 | |
669 | |
671 | for(tmp=get_map_ob(m, x ,y);tmp!=NULL&&tmp->above!=NULL; |
670 | for(tmp=get_map_ob(m, x ,y);tmp!=NULL&&tmp->above!=NULL; |