| 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 |