pkgsrc/games/exchess/patches/patch-ag
2004-02-14 04:31:56 +00:00

29 lines
823 B
Text

$NetBSD: patch-ag,v 1.1 2004/02/14 04:31:56 kristerw Exp $
--- hash.cpp.orig Sat Feb 14 04:23:02 2004
+++ hash.cpp Sat Feb 14 04:24:05 2004
@@ -210,7 +210,7 @@
}
for(i = 0; i < 64; i++) {
- or(temp_rec, hval[ID(p->sq[i])][i]);
+ hash_or(temp_rec, hval[ID(p->sq[i])][i]);
if(p->sq[i].side == p->wtm) p->material += value[p->sq[i].type];
else p->material -= value[p->sq[i].type];
if(p->sq[i].type > PAWN) p->pieces[p->sq[i].side]++;
@@ -220,11 +220,11 @@
}
}
- if(p->wtm) { or(temp_rec, wtm); }
- else { or(temp_rec, btm); }
+ if(p->wtm) { hash_or(temp_rec, wtm); }
+ else { hash_or(temp_rec, btm); }
- or(temp_rec, castle_code[p->castle]);
- or(temp_rec, ep_code[p->ep]);
+ hash_or(temp_rec, castle_code[p->castle]);
+ hash_or(temp_rec, ep_code[p->ep]);
return temp_rec;
}