Tue, 28 Aug 2018 15:45:44 +0200
fixes wrong macro expansion for is_attacked()
src/chess/rules.h | file | annotate | diff | comparison | revisions |
--- a/src/chess/rules.h Tue Aug 28 14:37:09 2018 +0200 +++ b/src/chess/rules.h Tue Aug 28 15:45:44 2018 +0200 @@ -246,7 +246,7 @@ * field and could capture an opponent piece */ #define is_attacked(gamestate, row, file, color) \ - get_threats(gamestate, row, file, color, NULL, NULL) + get_real_threats(gamestate, row, file, color, NULL, NULL) /** * Checks, if a specified field is protected by a piece of a certain color.