1 | /* |
1 | /* |
2 | * static char *rcsid_treasure_c = |
2 | * static char *rcsid_treasure_c = |
3 | * "$Id: treasure.c,v 1.1.1.2 2006/03/15 14:05:34 elmex Exp $"; |
3 | * "$Id: treasure.c,v 1.5 2006/08/13 17:16:03 elmex dead $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
145 | tries++; |
145 | tries++; |
146 | } |
146 | } |
147 | chest=place_chest(treasureoptions,i,j,map,style_map,num_treasures,RP); |
147 | chest=place_chest(treasureoptions,i,j,map,style_map,num_treasures,RP); |
148 | if(!chest) return; |
148 | if(!chest) return; |
149 | i = chest->x; j = chest->y; |
149 | i = chest->x; j = chest->y; |
150 | if(treasureoptions &( DOORED|HIDDEN)) { |
150 | if(treasureoptions & (DOORED|HIDDEN)) { |
151 | doorlist=surround_by_doors(map,layout,i,j,treasureoptions); |
151 | doorlist=surround_by_doors(map,layout,i,j,treasureoptions); |
152 | lock_and_hide_doors(doorlist,map,treasureoptions,RP); |
152 | lock_and_hide_doors(doorlist,map,treasureoptions,RP); |
153 | free(doorlist); |
153 | free(doorlist); |
154 | } |
154 | } |
155 | } |
155 | } |