# HG changeset patch # User Mike Becker # Date 1535463944 -7200 # Node ID e3a1a794351e87c4671523250ff03c4b776d28a7 # Parent 0c50aac49e55be482715179f1232a44253b906b6 fixes wrong macro expansion for is_attacked() diff -r 0c50aac49e55 -r e3a1a794351e src/chess/rules.h --- 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.