From 873accb9133fc9df5b16940bf0cbd4749c9638f3 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Wed, 1 Feb 2023 10:45:31 +0000 Subject: [PATCH] million game - only one hint to be used --- src/main/quizproject.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 903fae7..7533d9c 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -727,11 +727,14 @@ void play_milliongame() { } break; case 'H': - million_lifeline_hint = 0; - printf("Hint would be displayed here\n"); - - goto point_one; - + if(million_lifeline_hint != 1){ + printf("\nHint already used\n"); + goto point_one; + } else { + million_lifeline_hint = 0; + printf("Hint would be displayed here\n"); + goto point_one; + } break; case 'F': million_lifeline_delete = 0;