~l3kn/quad

cffb46cc4d2d877f9c2a09866ae168cc0aae07a2 — Leon Rische 5 months ago 704cf4f
Change to if-else
1 files changed, 3 insertions(+), 6 deletions(-)

M quad.c
M quad.c => quad.c +3 -6
@@ 244,16 244,13 @@ void handleMouse(SDL_Event* event) {
      if (tx == 2 && ty == 0) {
        rules[rule].tl = selection;
        draw();
      }
      if (tx == 3 && ty == 0) {
      } else if (tx == 3 && ty == 0) {
        rules[rule].tr = selection;
        draw();
      }
      if (tx == 2 && ty == 1) {
      } else if (tx == 2 && ty == 1) {
        rules[rule].bl = selection;
        draw();
      }
      if (tx == 3 && ty == 1) {
      } else if (tx == 3 && ty == 1) {
        rules[rule].br = selection;
        draw();
      }