Subversion Repositories Games.Chess Giants

Rev

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

Rev 177 Rev 178
Line 591... Line 591...
591
   player->sendbuffer_locked = true; // lock the buffer
591
   player->sendbuffer_locked = true; // lock the buffer
592
 
592
 
593
   // perform variable replacements on sendbuffer
593
   // perform variable replacements on sendbuffer
594
   if (the_board.move_count > 0)
594
   if (the_board.move_count > 0)
595
   {
595
   {
-
 
596
      wcs_replace (player->sendbuffer, L"${START_POS}", the_board.moves[0].fen_string);
596
      wcs_replace (player->sendbuffer, L"${CURRENT_POS}", (/*the_board.move_count == 2 ? L"startpos" : */the_board.moves[the_board.move_count - 1].fen_string));
597
      wcs_replace (player->sendbuffer, L"${CURRENT_POS}", (/*the_board.move_count == 2 ? L"startpos" : */the_board.moves[the_board.move_count - 1].fen_string));
597
      wcs_replace (player->sendbuffer, L"${LAST_MOVE}", Move_BuildString (&the_board.moves[the_board.move_count - 1]));
598
      wcs_replace (player->sendbuffer, L"${LAST_MOVE}", Move_BuildString (&the_board.moves[the_board.move_count - 1]));
598
      while (wcsstr (player->sendbuffer, L"${MAX_CORES}") != NULL)
599
      while (wcsstr (player->sendbuffer, L"${MAX_CORES}") != NULL)
599
      {
600
      {
600
         swprintf_s (replacement_string, WCHAR_SIZEOF (replacement_string), L"%d", max_cores);
601
         swprintf_s (replacement_string, WCHAR_SIZEOF (replacement_string), L"%d", max_cores);