Fixes
This commit is contained in:
1 parent
f9cb152cdb
commit
39a14ad5a2
1 file changed
+1
-1
@@ -76,7 +76,7 @@ function guessLetter($letter) {
|
||||
$_SESSION['mask'] = $newMask;
|
||||
|
||||
//if the guessword doesn't contain the letter increment errorCount
|
||||
if (!$wordcontainsletter) {
|
||||
if (!$wordcontainsletter && $_SESSION['errorCount'] < 10) {
|
||||
$_SESSION['errorCount'] = $_SESSION['errorCount'] + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user