From 5491848ee9e08ac91937520e847d993cea6e9550 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 2 Aug 2019 22:07:52 +0200 Subject: [PATCH] fixed emeraldval computation in binary4 / sol --- binary-tiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 2be97f11..58862775 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -123,7 +123,7 @@ namespace binary { if(d < 2) h->emeraldval = (parent->emeraldval * 2 + d) % 15015; else - h->emeraldval = ((parent->emeraldval - d1) * 7508) % 15015; + h->emeraldval = ((parent->emeraldval - d1) * 7508 + 15015) % 15015; } if(WDIM == 3 && h->c7) make_binary_lands(parent, h); #if DEBUG_BINARY_TILING