mirror of
https://github.com/AngelJumbo/lavat.git
synced 2024-11-04 23:06:44 +00:00
Fix custom radius option
This commit is contained in:
parent
a69ce502d7
commit
3b2dd40b5a
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