X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Finit.c;h=4756d395124baa7e32813b7aa658d0afd5d2d84c;hb=5fbd58dc91d27467d3ccbea2d76ab70a5ff2b3f7;hp=ffef1f4f89b41ec99d3416aa7ef60e0704585523;hpb=53066346e15cfc765eb96de1b446647da5231ee8;p=gnushogi.git diff --git a/gnushogi/init.c b/gnushogi/init.c index ffef1f4..4756d39 100644 --- a/gnushogi/init.c +++ b/gnushogi/init.c @@ -400,7 +400,7 @@ const small_short direc[NO_PTYPE_PIECES][8] = small_short diagonal(short d) { - return (abs(d) == 10 || abs(d) == 12); + return (abs(d) == (NO_COLS+1) || abs(d) == (NO_COLS+3)); } @@ -512,7 +512,7 @@ Initialize_moves(void) short dest[8][9]; short sorted[9]; short steps[8]; - short fpo = 23, tpo = 120; + short fpo = inunmap[0], tpo = 1 + inunmap[NO_SQUARES-1]; for (ptyp = 0; ptyp < NO_PTYPE_PIECES; ptyp++) {