version 1.26 | | version 1.27 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.26 2003/02/17 02:37:38 mwedel Exp $"; | | * "$Id: move.c,v 1.27 2003/02/20 06:46:57 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
i = find_free_spot (op->arch,op->map,x,y,0,SIZEOFFREE); | | i = find_free_spot (op->arch,op->map,x,y,0,SIZEOFFREE); |
else | | else |
i = find_first_free_spot(op->arch,op->map,x,y); | | i = find_first_free_spot(op->arch,op->map,x,y); |
| | |
if (i==-1) | | if (i==-1) |
return 0; /* No free spot */ | | return 0; /* No free spot */ |
| | |
| | |
for(tmp=op;tmp!=NULL;tmp=tmp->more) | | for(tmp=op;tmp!=NULL;tmp=tmp->more) |
tmp->x=x+freearr_x[i]+(tmp->arch==NULL?0:tmp->arch->clone.x), | | tmp->x=x+freearr_x[i]+(tmp->arch==NULL?0:tmp->arch->clone.x), |
tmp->y=y+freearr_y[i]+(tmp->arch==NULL?0:tmp->arch->clone.y); | | tmp->y=y+freearr_y[i]+(tmp->arch==NULL?0:tmp->arch->clone.y); |
return insert_ob_in_map(op,op->map,originator,0) == NULL; | | |
| | tmp = insert_ob_in_map(op,op->map,originator,0); |
| | if (op && op->type == PLAYER) MapNewmapCmd(op->contr); |
| | if (tmp) return 0; |
| | else return 1; |
} | | } |
| | |
/* | | /* |