// Keep in mind. Lighting corners accept the bottom left (northwest) set of cords to them as input // Handles dynamic light #define GENERATE_MISSING_CORNERS(gen_for) \ if (!gen_for.lighting_corner_NE) { \ gen_for.lighting_corner_NE = new /datum/lighting_corner(gen_for.x, gen_for.y, gen_for.z, gen_for.has_dynamic_lighting()); \ } \ if (!gen_for.lighting_corner_SE) { \ gen_for.lighting_corner_SE = new /datum/lighting_corner(gen_for.x, gen_for.y - 1, gen_for.z, gen_for.has_dynamic_lighting()); \ } \ if (!gen_for.lighting_corner_SW) { \ gen_for.lighting_corner_SW = new /datum/lighting_corner(gen_for.x - 1, gen_for.y - 1, gen_for.z, gen_for.has_dynamic_lighting()); \ } \ if (!gen_for.lighting_corner_NW) { \ gen_for.lighting_corner_NW = new /datum/lighting_corner(gen_for.x - 1, gen_for.y, gen_for.z, gen_for.has_dynamic_lighting()); \ } \ gen_for.lighting_corners_initialised = TRUE;