From beff3db8d291b00b47fc13a1b936fa4419e3d78d Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 25 Jul 2013 18:23:02 -0400 Subject: [PATCH] fix ctrl+x not deleting all signs --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 678247de9..53244e0be 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -347,7 +347,7 @@ void Simulation::clear_area(int area_x, int area_y, int area_w, int area_h) delete_part(cx+area_x, cy+area_y); } } - for(int i = 0; i < MAXSIGNS && i < signs.size(); i++) + for(int i = signs.size()-1; i >= 0; i--) { if(signs[i].text.length() && signs[i].x >= area_x && signs[i].y >= area_y && signs[i].x <= area_x+area_w && signs[i].y <= area_y+area_h) {