From ec2e35ca3d96717de698ac0d946369634e1f91a6 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 15 Sep 2012 19:51:24 +0200 Subject: [PATCH] Fix classification of variant games Variants were classified as non-standard, rather than wild. --- lasker-2.2.3/src/gamedb.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lasker-2.2.3/src/gamedb.c b/lasker-2.2.3/src/gamedb.c index d084f81..c0fa3b3 100644 --- a/lasker-2.2.3/src/gamedb.c +++ b/lasker-2.2.3/src/gamedb.c @@ -167,12 +167,13 @@ int game_isblitz(int wt, int winc, int bt, int binc, return TYPE_KNIGHTMATE; if (!strcmp(cat, "capablanca")) return TYPE_CAPABLANCA; - if (board && board[0]) { + if (board && board[0] && strcmp(board, "0")) { if (!strcmp(cat, "wild")) return TYPE_WILD; if (strcmp(cat, "standard") || strcmp(board, "standard")) return TYPE_NONSTANDARD; } + return TYPE_WILD; } if ((wt == 0) || (bt == 0)) -- 1.7.0.4