Subversion Repositories Games.Chess Giants

Rev

Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40 Rev 44
Line 1648... Line 1648...
1648
         else
1648
         else
1649
            free_slots++; // we found one free slot more
1649
            free_slots++; // we found one free slot more
1650
 
1650
 
1651
         // are we at the end of a line ?
1651
         // are we at the end of a line ?
1652
         if (column == 7)
1652
         if (column == 7)
-
 
1653
         {
-
 
1654
            // if there are free slots to mention, do it
-
 
1655
            if (free_slots > 0)
-
 
1656
            {
-
 
1657
               length = wcslen (move->fen_string); // append the free slots count
-
 
1658
               swprintf_s (&move->fen_string[length], WCHAR_SIZEOF (move->fen_string) - length, L"%d", free_slots);
-
 
1659
               free_slots = 0; // reset the free slots count
-
 
1660
            }
-
 
1661
            if (line > 0)
1653
            wcscat_s (move->fen_string, WCHAR_SIZEOF (move->fen_string), L"/"); // at the end of each line, drop a slash
1662
               wcscat_s (move->fen_string, WCHAR_SIZEOF (move->fen_string), L"/"); // at the end of each line, drop a slash (except on the last line)
-
 
1663
         }
1654
      }
1664
      }
1655
   }
1665
   }
1656
 
1666
 
1657
   //////////////////////////////////////////////////////
1667
   //////////////////////////////////////////////////////
1658
   // second part of the FEN notation is the side on move
1668
   // second part of the FEN notation is the side on move