X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=book.c;h=6a7b1679da6f386ab614a2df76800ac97f806836;hp=49c0962b14bf0f194432dcf143a99b6db5b64838;hb=HEAD;hpb=ae338a820ef1c16d4399958613bbc0b908904b91 diff --git a/book.c b/book.c index 49c0962..6a7b167 100644 --- a/book.c +++ b/book.c @@ -60,7 +60,7 @@ bool book_is_open(){ void book_open(const char file_name[]) { ASSERT(file_name!=NULL); - if(option_get_bool(Option,"BookLearn")){ + if(FALSE && option_get_bool(Option,"BookLearn")){ BookFile = fopen(file_name,"rb+"); }else{ BookFile = fopen(file_name,"rb"); @@ -186,6 +186,12 @@ void book_moves(list_t * list, const board_t * board) { if(BookFile==NULL) return; + // null keys are reserved for the header + if(board->key==U64(0x0)) return; + + + + // init list_clear(list);