Remove unnecessary clip_rect which didn't work with offset ui positions
This commit is contained in:
@@ -1638,7 +1638,6 @@ void draw_targeting_line(location where_curs) {
|
||||
if((can_see_light(from_loc,which_space,sight_obscurity) < 5)
|
||||
&& (dist(from_loc,which_space) <= current_spell_range)) {
|
||||
mainPtr().setActive(false);
|
||||
clip_rect(mainPtr(), on_screen_terrain_area);
|
||||
draw_line(mainPtr(), where_curs, location(xBound, yBound), 2, {128,128,128}, sf::BlendAdd);
|
||||
redraw_rect.left = min(where_curs.x,xBound) - 4;
|
||||
redraw_rect.right = max(where_curs.x,xBound) + 4;
|
||||
@@ -1679,7 +1678,6 @@ void draw_targeting_line(location where_curs) {
|
||||
|
||||
redraw_rect2.inset(-5,-5);
|
||||
mainPtr().setActive();
|
||||
undo_clip(mainPtr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user