Actually add the bool check this time
Some checks failed
Create Release on Push / build_and_release_linux (push) Has been cancelled
Create Release on Push / build_and_upload_windows (push) Has been cancelled

This commit is contained in:
lily 2025-10-06 06:58:41 +11:00
parent 34a6070190
commit 51e7266911

View file

@ -59,7 +59,7 @@ int main(void) {
printf ("Hello %s!\nThis is a game written for AgnoxGD.\nWould you like to see a tutorial\nType 1 for no, or 0 for yes.\n", username); printf ("Hello %s!\nThis is a game written for AgnoxGD.\nWould you like to see a tutorial\nType 1 for no, or 0 for yes.\n", username);
scanf("%s", input); scanf("%s", input);
if (isvalidnumber(input)) { if (isbool(input)) {
sscanf(input, "%d", &tempInput); sscanf(input, "%d", &tempInput);
tutorial = tempInput; tutorial = tempInput;
} else { } else {
@ -75,7 +75,7 @@ int main(void) {
printf ("\nWould you like your accuracy as a float or as an int? Type 0 for float or 1 for int.\n"); printf ("\nWould you like your accuracy as a float or as an int? Type 0 for float or 1 for int.\n");
scanf ("%s", input); scanf ("%s", input);
if (isvalidnumber(input)) { if (isbool(input)) {
sscanf(input, "%d", &accuracytype); sscanf(input, "%d", &accuracytype);
} else { } else {
printf ("Error! An invalid character was entered.\n"); printf ("Error! An invalid character was entered.\n");