mirror of
https://github.com/Soccera1/agg.git
synced 2025-11-04 10:27:33 +01:00
Actually add the bool check this time
This commit is contained in:
parent
34a6070190
commit
51e7266911
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue