diff options
Diffstat (limited to 'chickadee/math/grid.scm')
-rw-r--r-- | chickadee/math/grid.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/math/grid.scm b/chickadee/math/grid.scm index 9982f90..3a2f83f 100644 --- a/chickadee/math/grid.scm +++ b/chickadee/math/grid.scm @@ -66,10 +66,10 @@ needed to make the rectangles no longer overlap." (if (< x-fix y-fix) (if (= goal-x x1) (set-vec2-x! goal (+ (vec2-x goal) x-fix)) - (set-vec2-x! goal (+ (vec2-x goal) (- x-fix)))) + (set-vec2-x! goal (- (vec2-x goal) x-fix))) (if (= goal-y y1) (set-vec2-y! goal (+ (vec2-y goal) y-fix)) - (set-vec2-y! goal (+ (vec2-y goal) (- y-fix))))))) + (set-vec2-y! goal (- (vec2-y goal) y-fix)))))) ;;; |