Reset ease to 0 for after rescheduling cards as new

This commit is contained in:
Henrik Giesel 2021-01-08 18:15:24 +01:00
parent c8373f1ced
commit caa536a753

View file

@ -21,11 +21,7 @@ impl Card {
self.ctype = CardType::New;
self.queue = CardQueue::New;
self.interval = 0;
if self.ease_factor == 0 {
// unlike the old Python code, we leave the ease factor alone
// if it's already set
self.ease_factor = INITIAL_EASE_FACTOR_THOUSANDS;
}
self.ease_factor = 0;
}
/// If the card is new, change its position.