summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-08-19 20:00:20 -0700
committerArun Persaud <arun@nubati.net>2008-08-19 20:00:20 -0700
commit775bbd895cb60c0d62bd2cc2f1b2faeb00001efb (patch)
tree610b72fed026417683b2b773a6ba21be6a5dda14 /include/game.php
parent53d9b086ef0b8a5e210a5713dcd944c16bd39bc8 (diff)
downloade-DoKo-775bbd895cb60c0d62bd2cc2f1b2faeb00001efb.tar.gz
e-DoKo-775bbd895cb60c0d62bd2cc2f1b2faeb00001efb.tar.bz2
e-DoKo-775bbd895cb60c0d62bd2cc2f1b2faeb00001efb.zip
BUGFIX: error in scoring algorithm when two players on the contra team made a call
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>
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/game.php b/include/game.php
index a7004d6..8feda71 100644
--- a/include/game.php
+++ b/include/game.php
@@ -1557,7 +1557,7 @@ switch($mystatus)
{
if($call_contra==NULL)
$call_contra = $call;
- else if( $call < $call_re)
+ else if( $call < $call_contra)
$call_contra = $call;
}
}