fixes wrong macro expansion for is_attacked()

Tue, 28 Aug 2018 15:45:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 28 Aug 2018 15:45:44 +0200
changeset 61
e3a1a794351e
parent 60
0c50aac49e55
child 62
564af8a16828

fixes wrong macro expansion for is_attacked()

src/chess/rules.h file | annotate | diff | comparison | revisions
     1.1 --- a/src/chess/rules.h	Tue Aug 28 14:37:09 2018 +0200
     1.2 +++ b/src/chess/rules.h	Tue Aug 28 15:45:44 2018 +0200
     1.3 @@ -246,7 +246,7 @@
     1.4   * field and could capture an opponent piece
     1.5   */
     1.6  #define is_attacked(gamestate, row, file, color) \
     1.7 -    get_threats(gamestate, row, file, color, NULL, NULL)
     1.8 +    get_real_threats(gamestate, row, file, color, NULL, NULL)
     1.9  
    1.10  /**
    1.11   * Checks, if a specified field is protected by a piece of a certain color.

mercurial