BUGFIX: error in scoring algorithm when two players on the contra team made a call
authorArun Persaud <arun@nubati.net>
Wed, 20 Aug 2008 03:00:20 +0000 (20:00 -0700)
committerArun Persaud <arun@nubati.net>
Wed, 20 Aug 2008 03:00:20 +0000 (20:00 -0700)
to figure out who made the lower call, you need to compare the two calls, but for some
reason instead of comparing the two contra-calls, the contra call was compared to the re-call
which could make the algorithm belief that the contra-call was higher than it was.

Signed-off-by: Arun Persaud <arun@nubati.net>
include/game.php

index a7004d6863224383cabd731aa8c03eff5b1210d9..8feda716e3b6b11da20af668986652f5881a64df 100644 (file)
@@ -1557,7 +1557,7 @@ switch($mystatus)
                          {
                            if($call_contra==NULL)
                              $call_contra = $call;
                          {
                            if($call_contra==NULL)
                              $call_contra = $call;
-                           else if( $call < $call_re)
+                           else if( $call < $call_contra)
                              $call_contra = $call;
                          }
                      }
                              $call_contra = $call;
                          }
                      }