diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2025-03-11 17:57:57 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2025-03-11 17:57:57 +0900 |
commit | c5ad891da3d5cee9958a02d660db99a41fec111b (patch) | |
tree | a05a27125c1fa1acde723b4234dabf89997e4ead /src/Decals.zig | |
parent | 30f666f3ada479974353cdd7f3be9cdcec497fa1 (diff) | |
download | blackshades-main.tar.gz |
Awaiting upstream libraries to support Zig 0.14 to purge the submodules: * ini: https://github.com/ziglibs/ini/pull/14#issuecomment-2712560632 * qoi: https://github.com/ikskuh/zig-qoi/pull/14
Diffstat (limited to 'src/Decals.zig')
-rw-r--r-- | src/Decals.zig | 4 |
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; |