From bdb3f59cd2ba7fe52d615ec4bb0fb5d9480c7ad5 Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Mon, 10 Mar 2025 20:15:27 +0300 Subject: [PATCH] Show the knight in the zero position Signed-off-by: Denis Kozadaev --- src/gameboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameboard.cpp b/src/gameboard.cpp index 33bea1a..82c86c5 100644 --- a/src/gameboard.cpp +++ b/src/gameboard.cpp @@ -112,7 +112,7 @@ GameBoard::redrawMap() for (pos = 0, y = oy; y < h; y += dy) { for (x = ox; x < w; x += dx) { p->drawRect(x, y, dx, dy); - if (isEnabled() && (kpos > 0) && (kpos == pos) && + if (isEnabled() && (kpos >= 0) && (kpos == pos) && IS_SET(config, CFG_KNIGHT)) { /* draw the knight */ p->drawPixmap(x, y, *kxpm);