X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=45c5b0a8c83fda889adb15d9a61cfc3a42585a55;hp=6a27108d9f4b6c3f2da3bfcc239760081142428d;hb=d8b3ad2208328e2ed35c34c450b539918ee5c87e;hpb=c7332d5610faf6086ce0b0fe795f5ffc92cc39b0 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 6a27108d..45c5b0a8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1,7 +1,7 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -534,7 +534,7 @@ namespace { b = weak & ~ei.attackedBy[Them][ALL_PIECES]; if (b) - score += more_than_one(b) ? Hanging * popcount(b) : Hanging; + score += Hanging * popcount(b); b = weak & ei.attackedBy[Us][KING]; if (b)