From eeeb8977ec2e4dc899076245c5a647893955d11a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 17 Jun 2015 03:09:22 +1000 Subject: [PATCH] noise-tool: correct single octave difference --- tools/noise.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/noise.cpp b/tools/noise.cpp index 8a96f8e6..07143e56 100644 --- a/tools/noise.cpp +++ b/tools/noise.cpp @@ -293,6 +293,7 @@ main (int argc, char **argv) // inefficient, but it's not an operation we care about in general. if (single && f.octaves () != 1) { auto oldoctaves = f.octaves (); + f.octaves (oldoctaves - 1); auto prev = img.clone (); for (size_t y = 0; y < res.h; ++y)