version 1.38 | | version 1.39 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.38 2001/05/29 04:41:53 mwedel Exp $"; | | * "$Id: apply.c,v 1.39 2001/06/04 06:41:02 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if(m==NULL) return; | | if(m==NULL) return; |
| | |
for(x=0;x<m->mapx;x++) | | for(x=0;x<m->map_object->x;x++) |
for(y=0;y<m->mapy;y++) | | for(y=0;y<m->map_object->y;y++) |
for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=above) { | | for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=above) { |
above=tmp->above; | | above=tmp->above; |
| | |
| | |
create_treasure(tmp->randomitems, tmp, GT_APPLY, | | create_treasure(tmp->randomitems, tmp, GT_APPLY, |
m->difficulty,0); | | m->difficulty,0); |
} | | } |
for(x=0;x<m->mapx;x++) | | for(x=0;x<m->map_object->x;x++) |
for(y=0;y<m->mapy;y++) | | for(y=0;y<m->map_object->y;y++) |
for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above) | | for(tmp=get_map_ob(m,x,y);tmp!=NULL;tmp=tmp->above) |
if (tmp->above && | | if (tmp->above && |
(tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL)) | | (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL)) |