From 0dcac31b4a63cf1daea398a5ff2aef9362a38e38 Mon Sep 17 00:00:00 2001 From: owein D Date: Wed, 30 Sep 2020 10:19:10 +0200 Subject: [PATCH] avoid negative values for the rotation variable --- bfg.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bfg.c b/bfg.c index 537c1c9..d8a09a6 100644 --- a/bfg.c +++ b/bfg.c @@ -221,12 +221,6 @@ char *bf_next() { } //we revert the ordering of the bruteforce to fix the first static character - if(rainy) - while (pos >= 0 && (++bf_options.state[bf_options.current-1-pos]) >= bf_options.crs_len) { - bf_options.state[bf_options.current-1-pos] = 0; - pos--; - } - else while (pos >= 0 && (++bf_options.state[pos]) >= bf_options.crs_len) { bf_options.state[pos] = 0; pos--;