projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
318bcd2
)
Fix classification of variant games
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 15 Sep 2012 17:51:24 +0000 (19:51 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 15 Sep 2012 17:51:24 +0000 (19:51 +0200)
Variants were classified as non-standard, rather than wild.
lasker-2.2.3/src/gamedb.c
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/src/gamedb.c
b/lasker-2.2.3/src/gamedb.c
index
d084f81
..
c0fa3b3
100644
(file)
--- 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))