fixed: correct startplayer for solos
authorarun <arun@nubati.net>
Sun, 14 Jan 2007 12:17:06 +0000 (12:17 +0000)
committerarun <arun>
Sun, 14 Jan 2007 12:17:06 +0000 (12:17 +0000)
index.php

index 4f60b89ca0f396b7433857e614a29d8daf63282a..157c7bdc8a30b7fdce115e8bef76a36ccafa053d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -434,7 +434,7 @@ else if(myisset("me"))
        
        $play = array(); /* needed to calculate winner later  */
        $seq  = 1;          
        
        $play = array(); /* needed to calculate winner later  */
        $seq  = 1;          
-       $pos  = 0;
+       $pos  = DB_get_startplayer_by_gameid($gameid)-1; 
        $firstcard = ""; /* first card in a trick */
        
        echo "\n<ul class=\"tricks\">\n";
        $firstcard = ""; /* first card in a trick */
        
        echo "\n<ul class=\"tricks\">\n";