From 2f733b4e1dffd1ff0446a11a5e95f254b47550f3 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 14 May 2007 14:02:24 -0700 Subject: [PATCH] Don't start mastery session until there are no items unlearned *nor* any to introduce --- mnemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mnemon.c b/mnemon.c index 1ca0939..9bdef93 100644 --- a/mnemon.c +++ b/mnemon.c @@ -746,7 +746,10 @@ mnemon_handle_response (mnemon_t *mnemon, item->score = 1; mnemon->unlearned--; printf ("You got it!"); - if (mnemon->unlearned == 0 && mnemon->to_master == 0) { + if (mnemon->to_introduce == 0 && + mnemon->unlearned == 0 && + mnemon->to_master == 0) + { mnemon->to_master = 10; mnemon->mastered = 0; } -- 2.43.0