projects
/
mnemon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1024a6b
)
Don't start mastery session until there are no items unlearned *nor* any to introduce
author
Carl Worth
<cworth@cworth.org>
Mon, 14 May 2007 21:02:24 +0000
(14:02 -0700)
committer
Carl Worth
<cworth@cworth.org>
Mon, 14 May 2007 21:02:24 +0000
(14:02 -0700)
mnemon.c
patch
|
blob
|
history
diff --git
a/mnemon.c
b/mnemon.c
index 1ca0939d6fa9f8cdae19d3c7766b640c500a7ffb..9bdef93f3c4994a87730ab5b324667e2bb13f8c3 100644
(file)
--- 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;
}