mirror of
https://github.com/AngelJumbo/lavat.git
synced 2024-11-16 12:46:39 +00:00
Fix custom radius option
This commit is contained in:
parent
fdf6408cae
commit
de84a644f7
2
lavat.c
2
lavat.c
@ -189,7 +189,7 @@ int parse_options(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
radius = 50 + (11 - atoi(optarg)) * 10;
|
radius = 50 + atoi(optarg) * 10;
|
||||||
if (radius > 150 || radius < 50) {
|
if (radius > 150 || radius < 50) {
|
||||||
printf("Invalid radius, only values between 1 and 10 are allowed\n");
|
printf("Invalid radius, only values between 1 and 10 are allowed\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user