From de84a644f76ec85f2f0b9f4d21df4efb41430484 Mon Sep 17 00:00:00 2001 From: AngelJumbo Date: Thu, 20 Oct 2022 16:39:09 -0500 Subject: [PATCH] Fix custom radius option --- lavat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lavat.c b/lavat.c index b56a524..2bcfc7f 100644 --- a/lavat.c +++ b/lavat.c @@ -189,7 +189,7 @@ int parse_options(int argc, char *argv[]) { } break; case 'r': - radius = 50 + (11 - atoi(optarg)) * 10; + radius = 50 + atoi(optarg) * 10; if (radius > 150 || radius < 50) { printf("Invalid radius, only values between 1 and 10 are allowed\n"); return 0;