Skip to content
Snippets Groups Projects
Commit 3986bfe5 authored by deuce's avatar deuce
Browse files

Handle zero-length guesses as the number zero.

parent 8e85d753
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ function menu()
lw(' `2Guess?`% ');
guess = parseInt(getstr(0, 0, 10, 0, 7, '', {integer:true}), 10);
if (isNaN(guess))
guess = 0;
sln('');
now = (new Date()).valueOf();
if (endtime != 0 && now > endtime)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment