about summary refs log tree commit diff
path: root/src/Decals.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Decals.zig')
-rw-r--r--src/Decals.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Decals.zig b/src/Decals.zig
index ecbc71c..b81b030 100644
--- a/src/Decals.zig
+++ b/src/Decals.zig
@@ -1,7 +1,7 @@
 // Decal construction and drawing
 // Copyright (C) 2002  David Rosen
 // Copyright (C) 2003  Steven Fuller
-// Copyright (C) 2023  Nguyễn Gia Phong
+// Copyright (C) 2023, 2025  Nguyễn Gia Phong
 //
 // This file is part of Black Shades.
 //
@@ -83,7 +83,7 @@ export fn addDecal(d: *Decals, kind: Kind, location: XYZ,
                    size: f32, normal: XYZ, poly: c_int,
                    m: *const Model, move: XYZ, rot: f32) void {
     const n: @Vector(3, f32) = @bitCast(normal);
-    const abs_n = @fabs(n);
+    const abs_n = @abs(n);
     var major: u2 = 0;
     if (abs_n[1] > abs_n[major])
         major = 1;