File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1103,7 +1103,7 @@ void LastTrickWinner(
11031103  {
11041104    hp = handId (dl->first , h);
11051105    lastTrickSuit[hp] = dl->currentTrickSuit [h];
1106-     lastTrickRank[hp] = bitMapRank[ dl->currentTrickRank [h] ];
1106+     lastTrickRank[hp] = dl->currentTrickRank [h];
11071107  }
11081108
11091109  for  (h = handRelFirst; h < DDS_HANDS; h++)
@@ -1114,7 +1114,7 @@ void LastTrickWinner(
11141114      if  (thrp->suit [hp][s] != 0 )
11151115      {
11161116        lastTrickSuit[hp] = s;
1117-         lastTrickRank[hp] = thrp->suit [hp][s];
1117+         lastTrickRank[hp] = highestRank[ thrp->suit [hp][s] ];
11181118        break ;
11191119      }
11201120    }
@@ -1157,8 +1157,9 @@ void LastTrickWinner(
11571157    }
11581158  }
11591159
1160-   * leadRank = lastTrickRank[handRelFirst];
1161-   * leadSuit = lastTrickSuit[handRelFirst];
1160+   hp = handId (dl->first , handRelFirst);
1161+   * leadRank = lastTrickRank[hp];
1162+   * leadSuit = lastTrickSuit[hp];
11621163  * leadSideWins = ((handToPlay == maxHand ||
11631164                     partner[handToPlay] == maxHand) ? 1  : 0 );
11641165}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments