From 129f2e421e16bd008cdca8713cc91f67d103d94e Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 7 Jul 2023 23:05:14 +0200 Subject: Fix minor quality issues --- src/Math/Perlin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Math/Perlin.cpp') diff --git a/src/Math/Perlin.cpp b/src/Math/Perlin.cpp index e0982cb..5614bb6 100644 --- a/src/Math/Perlin.cpp +++ b/src/Math/Perlin.cpp @@ -9,7 +9,7 @@ float ease(float t) { } uint8_t hash(uint8_t x) { - auto rot = (x * 5) % 8; + auto rot = x * 5 % 8; return x << rot | x >> (8 - rot); } -- cgit 1.4.1