… | |
… | |
1210 | magic_mapping_mark (op, map_mark, 3); |
1210 | magic_mapping_mark (op, map_mark, 3); |
1211 | items = (shopinv *) malloc (40 * sizeof (shopinv)); |
1211 | items = (shopinv *) malloc (40 * sizeof (shopinv)); |
1212 | numallocated = 40; |
1212 | numallocated = 40; |
1213 | |
1213 | |
1214 | /* Find all the appropriate items */ |
1214 | /* Find all the appropriate items */ |
1215 | for (i = 0; i < MAP_WIDTH (op->map); i++) |
1215 | for (i = 0; i < op->map->width; i++) |
1216 | { |
1216 | { |
1217 | for (j = 0; j < MAP_HEIGHT (op->map); j++) |
1217 | for (j = 0; j < op->map->height; j++) |
1218 | { |
1218 | { |
1219 | /* magic map code now centers the map on the object at MAGIC_MAP_HALF. |
1219 | /* magic map code now centers the map on the object at MAGIC_MAP_HALF. |
1220 | * |
1220 | * |
1221 | */ |
1221 | */ |
1222 | nx = i - op->x + MAGIC_MAP_HALF; |
1222 | nx = i - op->x + MAGIC_MAP_HALF; |