This commit is contained in:
structix committed 2019-06-30 23:12:57 +02:00
1 parent f9cb152cdb
commit 39a14ad5a2
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ function guessLetter($letter) {
$_SESSION['mask'] = $newMask; $_SESSION['mask'] = $newMask;
//if the guessword doesn't contain the letter increment errorCount //if the guessword doesn't contain the letter increment errorCount
if (!$wordcontainsletter) { if (!$wordcontainsletter && $_SESSION['errorCount'] < 10) {
$_SESSION['errorCount'] = $_SESSION['errorCount'] + 1; $_SESSION['errorCount'] = $_SESSION['errorCount'] + 1;
} }