From a4149c6703653b2d0d5f3da4277d7fe065048edd Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 18 May 2008 11:48:25 -0700 Subject: BUGFIX: show schweinchen has highest trump in your hand correctly shows both schweinchen as highest trump or just one depending on the rules. If only one don't allow to play it unless the first fox has been played. Signed-off-by: Arun Persaud --- include/functions.php | 45 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index bbffe00..5267bfb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,5 +1,5 @@ \n \n"; function cmp($a,$b) { @@ -942,7 +975,7 @@ function generate_global_score_table() $a=$a['points']/$a['nr']; $b=$b['points']/$b['nr']; - if ($a == $b) + if ($a == $b) return 0; return ($a > $b) ? -1 : 1; } @@ -953,7 +986,7 @@ function generate_global_score_table() echo " ",$pl['name'],"",round($pl['points']/$pl['nr'],3),"\n"; } echo "\n"; - + return; } -- cgit v1.2.3-18-g5258