1
0
mirror of https://salsa.debian.org/games-team/bsdgames synced 2024-06-08 17:30:46 +00:00

Fix Q -> Qu hilighting when rotated

This commit is contained in:
b9 2020-08-27 06:40:00 -07:00
parent a7c103b341
commit daf92587ab

View File

@ -472,7 +472,7 @@ findword()
standout();
for (i = 0; wordpath[i] != -1; i++) {
int w=wordpath[i];
int w = wordpath[i];
if (orientation == 1 || orientation == 3)
w=rotation[4-orientation][w]; /* Unrotate +/- 90 degrees*/
else
@ -480,10 +480,11 @@ findword()
row = BOARD_LINE + (w / 4) * 2 + 1;
col = BOARD_COL + (w % 4) * 4 + 2;
move(row, col);
if (board[w] == 'q')
unsigned char k = board[wordpath[i]];
if (k == 'q')
printw("Qu");
else
printw("%c", toupper((unsigned char)board[wordpath[i]]));
printw("%c", toupper(k));
move(r, c);
refresh();
delay(5);
@ -500,10 +501,11 @@ findword()
row = BOARD_LINE + (w / 4) * 2 + 1;
col = BOARD_COL + (w % 4) * 4 + 2;
move(row, col);
if (board[w] == 'q')
unsigned char k = board[wordpath[i]];
if (k == 'q')
printw("Qu");
else
printw("%c", toupper((unsigned char)board[wordpath[i]]));
printw("%c", toupper(k));
}
move(r, c);
clrtoeol();