Rev 54 | Rev 64 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 54 | Rev 63 | ||
|---|---|---|---|
| Line 110... | Line 110... | ||
| 110 | new_move->target[0] = WCHAR_TO_LINE (new_move->pgntext[fieldstop]); // read the target line |
110 | new_move->target[0] = WCHAR_TO_LINE (new_move->pgntext[fieldstop]); // read the target line |
| 111 | fieldstop--; // proceed to previous character |
111 | fieldstop--; // proceed to previous character |
| 112 | } |
112 | } |
| 113 | if (fieldstop >= fieldstart) |
113 | if (fieldstop >= fieldstart) |
| 114 | { |
114 | { |
| 115 | new_move->target[1] = WCHAR_TO_COLUMN |
115 | new_move->target[1] = WCHAR_TO_COLUMN (new_move->pgntext[fieldstop]); // read the target column (WARNING: ONLY IF LOWERCASE) |
| 116 | fieldstop--; // proceed to previous character |
116 | fieldstop--; // proceed to previous character |
| 117 | } |
117 | } |
| 118 | 118 | ||
| 119 | if ((fieldstop >= fieldstart) && (new_move->pgntext[fieldstop] == L'x')) |
119 | if ((fieldstop >= fieldstart) && (new_move->pgntext[fieldstop] == L'x')) |
| 120 | fieldstop--; // if there's a taking piece indication, it's superfluous, so skip it |
120 | fieldstop--; // if there's a taking piece indication, it's superfluous, so skip it |
| Line 123... | Line 123... | ||
| 123 | if ((fieldstop >= fieldstart) && (WCHAR_TO_LINE (new_move->pgntext[fieldstop]) != -1)) |
123 | if ((fieldstop >= fieldstart) && (WCHAR_TO_LINE (new_move->pgntext[fieldstop]) != -1)) |
| 124 | { |
124 | { |
| 125 | new_move->source[0] = WCHAR_TO_LINE (new_move->pgntext[fieldstop]); // read the source line |
125 | new_move->source[0] = WCHAR_TO_LINE (new_move->pgntext[fieldstop]); // read the source line |
| 126 | fieldstop--; // proceed to previous character |
126 | fieldstop--; // proceed to previous character |
| 127 | } |
127 | } |
| 128 | if ((fieldstop >= fieldstart) && (WCHAR_TO_COLUMN |
128 | if ((fieldstop >= fieldstart) && (WCHAR_TO_COLUMN (new_move->pgntext[fieldstop]) != -1)) |
| 129 | { |
129 | { |
| 130 | new_move->source[1] = WCHAR_TO_COLUMN |
130 | new_move->source[1] = WCHAR_TO_COLUMN (new_move->pgntext[fieldstop]); // read the source column (WARNING: ONLY IF LOWERCASE) |
| 131 | fieldstop--; // proceed to previous character |
131 | fieldstop--; // proceed to previous character |
| 132 | } |
132 | } |
| 133 | 133 | ||
| 134 | // read the part's type |
134 | // read the part's type |
| 135 | if (fieldstop >= fieldstart) |
135 | if (fieldstop >= fieldstart) |