src/chess/pgn.c

changeset 186
8230904458a7
parent 182
04c65336777f
equal deleted inserted replaced
185:c0acc89d6c01 186:8230904458a7
153 } 153 }
154 int move_validate_result = validate_move(gamestate, &move); 154 int move_validate_result = validate_move(gamestate, &move);
155 if (move_validate_result != VALID_MOVE_SEMANTICS) { 155 if (move_validate_result != VALID_MOVE_SEMANTICS) {
156 return(pgn_error_move_semantics); 156 return(pgn_error_move_semantics);
157 } 157 }
158 format_move(gamestate, &move);
158 apply_move(gamestate, &move); 159 apply_move(gamestate, &move);
159 160
160 /* skip spaces */ 161 /* skip spaces */
161 while (isspace(c = *(pgndata++))); 162 while (isspace(c = *(pgndata++)));
162 163

mercurial