src/chess/pgn.c

changeset 175
e0e061cf4829
parent 173
e541b6002933
equal deleted inserted replaced
174:2929e86c4817 175:e0e061cf4829
177 if (c == 0) { 177 if (c == 0) {
178 break; 178 break;
179 } 179 }
180 if (c == '1' || c == '0') { 180 if (c == '1' || c == '0') {
181 c = *(pgndata++); 181 c = *(pgndata++);
182 // TODO: #842 - allow games to be continued if possible
183 if (c == '-') { 182 if (c == '-') {
184 if (!gamestate->checkmate) { 183 if (!gamestate->checkmate) {
185 // TODO: maybe we should not parse this here;
186 // there is an unused result string from the STR
187 c = *(pgndata++); 184 c = *(pgndata++);
188 if (c == '1') { 185 if (c == '1') {
189 gamestate->wresign = true; 186 gamestate->wresign = true;
190 } else if (c == '0') { 187 } else if (c == '0') {
191 gamestate->bresign = true; 188 gamestate->bresign = true;

mercurial