From 2961410e2329d8adbc9238690ce7f5ad10f0463f Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 15 Sep 2013 16:29:39 +0200 Subject: * usunięcie błędu wyświetlającego "-0" dla poprawek krótkich honorów MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/lib/OsikaEvaluator.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/lib/OsikaEvaluator.php b/bin/lib/OsikaEvaluator.php index e373536..3e74c7e 100644 --- a/bin/lib/OsikaEvaluator.php +++ b/bin/lib/OsikaEvaluator.php @@ -79,6 +79,9 @@ class OsikaEvaluator { return 0; } $count = $this->_countHonors($suit); + if (!$count) { + return 0; + } // H sec = -1/8 of a trick; Hx = -1/16 of a trick; HH sec = -1/8 of a trick return $count * (($length === 1) ? -0.125 : -0.0625); } -- cgit v1.2.3