version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.5 2000/03/27 06:23:38 cvs Exp $"; | | * "$Id: map.c,v 1.6 2000/03/29 07:46:48 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#endif | | #endif |
switch(i) { | | switch(i) { |
case LL_NORMAL: | | case LL_NORMAL: |
insert_ob_in_map(op,m); | | insert_ob_in_map_simple(op,m); |
#if 1 | | #if 1 |
if (op->inv) sum_weight(op); | | if (op->inv) sum_weight(op); |
#else | | #else |
| | |
break; | | break; |
#endif | | #endif |
case LL_MORE: | | case LL_MORE: |
insert_ob_in_map(op,m); | | insert_ob_in_map_simple(op,m); |
op->head=prev,last_more->more=op,last_more=op; | | op->head=prev,last_more->more=op,last_more=op; |
break; | | break; |
} | | } |
| | |
while((op=get_map_ob(m1,i,j))!=NULL&&op->head==NULL) { | | while((op=get_map_ob(m1,i,j))!=NULL&&op->head==NULL) { |
remove_ob(op); | | remove_ob(op); |
op->x=i,op->y=j; /* Not really needed */ | | op->x=i,op->y=j; /* Not really needed */ |
insert_ob_in_map(op,m2); | | insert_ob_in_map_simple(op,m2); |
} | | } |
} | | } |
free_all_objects(m1); | | free_all_objects(m1); |
| | |
*/ | | */ |
| | |
/* In case other objects press some buttons down */ | | /* In case other objects press some buttons down */ |
(*update_buttons_func)(m); | | update_buttons(m); |
| | |
return m; | | return m; |
} | | } |
| | |
prt->y += dy; /* designers problem to fix */ | | prt->y += dy; /* designers problem to fix */ |
prt->y %= target->mapy; | | prt->y %= target->mapy; |
} | | } |
insert_ob_in_map(obj,target); | | insert_ob_in_map_simple(obj,target); |
if (linked) | | if (linked) |
add_button_link(obj, target, link); | | add_button_link(obj, target, link); |
} | | } |
| | |
prt->y += dy; /* designers problem to fix */ | | prt->y += dy; /* designers problem to fix */ |
prt->y %= target->mapy; | | prt->y %= target->mapy; |
} | | } |
insert_ob_in_map(obj,target); | | insert_ob_in_map_simple(obj,target); |
} | | } |
free_all_objects(source); | | free_all_objects(source); |
} | | } |