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
--- 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.

mercurial