… | |
… | |
276 | { |
276 | { |
277 | sint16 i2, j2; |
277 | sint16 i2, j2; |
278 | mflags = get_map_flags (map, &map2, i, j, &i2, &j2); |
278 | mflags = get_map_flags (map, &map2, i, j, &i2, &j2); |
279 | |
279 | |
280 | if (!(mflags & P_OUT_OF_MAP) && (mflags & P_IS_ALIVE)) |
280 | if (!(mflags & P_OUT_OF_MAP) && (mflags & P_IS_ALIVE)) |
281 | for (tmp = get_map_ob (map2, i2, j2); tmp; tmp = tmp->above) |
281 | for (tmp = GET_MAP_OB (map2, i2, j2); tmp; tmp = tmp->above) |
282 | infect_object (tmp, disease, 0); |
282 | infect_object (tmp, disease, 0); |
283 | } |
283 | } |
284 | |
284 | |
285 | return 1; |
285 | return 1; |
286 | } |
286 | } |