ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/standalone.C
(Generate patch)

Comparing deliantra/server/random_maps/standalone.C (file contents):
Revision 1.8 by root, Mon Dec 18 03:00:02 2006 UTC vs.
Revision 1.9 by root, Wed Dec 20 09:14:22 2006 UTC

139 object *tmp, *above = NULL; 139 object *tmp, *above = NULL;
140 int x, y; 140 int x, y;
141 141
142 for (x = 0; x < MAP_WIDTH (m); x++) 142 for (x = 0; x < MAP_WIDTH (m); x++)
143 for (y = 0; y < MAP_HEIGHT (m); y++) 143 for (y = 0; y < MAP_HEIGHT (m); y++)
144 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = above) 144 for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = above)
145 { 145 {
146 above = tmp->above; 146 above = tmp->above;
147 147
148 if (QUERY_FLAG (tmp, FLAG_AUTO_APPLY)) 148 if (QUERY_FLAG (tmp, FLAG_AUTO_APPLY))
149 auto_apply (tmp); 149 auto_apply (tmp);
165 create_treasure (tmp->randomitems, tmp, GT_APPLY, m->difficulty, 0); 165 create_treasure (tmp->randomitems, tmp, GT_APPLY, m->difficulty, 0);
166 } 166 }
167 } 167 }
168 for (x = 0; x < MAP_WIDTH (m); x++) 168 for (x = 0; x < MAP_WIDTH (m); x++)
169 for (y = 0; y < MAP_HEIGHT (m); y++) 169 for (y = 0; y < MAP_HEIGHT (m); y++)
170 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above) 170 for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = tmp->above)
171 if (tmp->above && (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL)) 171 if (tmp->above && (tmp->type == TRIGGER_BUTTON || tmp->type == TRIGGER_PEDESTAL))
172 check_trigger (tmp, tmp->above); 172 check_trigger (tmp, tmp->above);
173} 173}
174 174
175/** 175/**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines