From 115977defd8cd83ec42300d761c86e43234e6c85 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 20 Oct 2021 14:17:51 -0500 Subject: [PATCH] wrong op on vecmath --- src/vecmath.onyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vecmath.onyx b/src/vecmath.onyx index e724ffe..b7a46db 100644 --- a/src/vecmath.onyx +++ b/src/vecmath.onyx @@ -22,8 +22,8 @@ V2f :: struct { } #operator*= macro (a: ^V2f, s: f32) { - a.x += s; - a.y += s; + a.x *= s; + a.y *= s; } v2f_dot :: macro (a, b: V2f) => a.x * b.x + a.y * b.y; -- 2.25.1