Fixed bug where double digits in phone number weren't accepted properly (second digit required 10-digit strokes, third digit was impossible).

This commit is contained in:
Sander Schobers 2020-05-11 15:52:43 +02:00
parent ee7f99166c
commit 3717cfd872

View File

@ -123,6 +123,8 @@ func (r *Research) userTyped(i int) {
r.digitCount = 0
} else if r.digitCount == i || r.digitCount == 10 {
r.input.Text += digit
r.typing = ""
r.digitCount = 0
if r.input.Text == r.botanist.Number {
r.game.UnlockNextFlower()