From 1af761b873276842974683eca8ca130e0c787266 Mon Sep 17 00:00:00 2001 From: Noel Tlatempa G Date: Thu, 27 Jun 2013 22:56:30 +0000 Subject: [PATCH] rotate_history_cursor_fix Fix cursor in rotate board mode history "castling" --- src/cboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cboard.c b/src/cboard.c index 9809138..5e98046 100644 --- a/src/cboard.c +++ b/src/cboard.c @@ -257,7 +257,8 @@ void update_cursor(GAME g, int idx) if (idx > t || idx < 0 || !t || !g->hp[idx]->move) { d->c_row = 2, d->c_col = 5; - return; + goto historyrotate; +// return; } p = g->hp[idx]->move; @@ -281,6 +282,7 @@ void update_cursor(GAME g, int idx) d->c_row = RANKTOINT(*p--); d->c_col = FILETOINT(*p); +historyrotate: if (d->mode == MODE_HISTORY && rotate) rotate_position(CURSOR_POSITION); } -- 2.11.4.GIT