1
1
Fork 0
Browse Source

fix rope position bug

thread-physics
alistair 4 years ago
parent
commit
f3b486b7f2
  1. 1
      game.c

1
game.c

@ -886,6 +886,7 @@ void add_rope(int mouse_x, int mouse_y) { @@ -886,6 +886,7 @@ void add_rope(int mouse_x, int mouse_y) {
Vect rope = vect_add(intersect, vect_scalar(start, -1));
double mag = vect_mag(rope);
if (mag < len) {
len = mag;
found = true;
end = intersect;
}

Loading…
Cancel
Save