From: Brendan Hansen Date: Wed, 20 Oct 2021 19:17:51 +0000 (-0500) Subject: wrong op on vecmath X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;ds=sidebyside;p=onyx-particle-sim.git wrong op on vecmath --- 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;