BUGFIX: error in scoring algorithm when two players on the contra team made a call
[e-DoKo.git] / include / game.php
index e471d5d47fef8eb5339ccaad02102f0cbd9ce73f..8feda716e3b6b11da20af668986652f5881a64df 100644 (file)
@@ -832,7 +832,7 @@ switch($mystatus)
                DB_set_hand_status_by_hash($userhash,'poverty');
 
                $message = "Someone has poverty, it's your turn to decide, if you want to take the trump. Please visit:".
-                 " ".$HOST.$INDEX."?action=game&me=".$userhash."\n\n" ;
+                 " ".$HOST.$INDEX."?action=game&me=".$userhash."\n\n" ;
                mymail($To,$EmailName." poverty (game ".DB_format_gameid($gameid).")",$message);
              }
          }
@@ -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;
                          }
                      }