version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.29 2003/09/04 06:25:32 temitchell Exp $"; | | * "$Id: move.c,v 1.30 2004/03/23 07:52:31 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* TODO: allow multi arch pushing. Can't be very difficult */ | | /* TODO: allow multi arch pushing. Can't be very difficult */ |
if (who->more == NULL && owner == pusher) { | | if (who->more == NULL && owner == pusher) { |
int temp; | | int temp; |
| | mapstruct *m; |
| | |
remove_ob(who); | | remove_ob(who); |
remove_ob(pusher); | | remove_ob(pusher); |
temp = pusher->x; | | temp = pusher->x; |
pusher->x = who->x; | | pusher->x = who->x; |
who->x = temp; | | who->x = temp; |
| | |
temp = pusher->y; | | temp = pusher->y; |
pusher->y = who->y; | | pusher->y = who->y; |
who->y = temp; | | who->y = temp; |
| | |
| | m = pusher->map; |
| | pusher->map = who->map; |
| | who->map = m; |
| | |
insert_ob_in_map (who,who->map,pusher,0); | | insert_ob_in_map (who,who->map,pusher,0); |
insert_ob_in_map (pusher,pusher->map,pusher,0); | | insert_ob_in_map (pusher,pusher->map,pusher,0); |
| | |