wrong op on vecmath master
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 20 Oct 2021 19:17:51 +0000 (14:17 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 20 Oct 2021 19:17:51 +0000 (14:17 -0500)
src/vecmath.onyx

index e724ffeb196ea66b562348db2b7f0886e58c66bc..b7a46db5da9aad4ba85e388647ad9c6a2615f9a3 100644 (file)
@@ -22,8 +22,8 @@ V2f :: struct {
 }
 
 #operator*= macro (a: ^V2f, s: f32) {
 }
 
 #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;
 }
 
 v2f_dot  :: macro (a, b: V2f) => a.x * b.x + a.y * b.y;