fixed new network games starting with BLACK

Wed, 26 Aug 2015 12:59:30 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 26 Aug 2015 12:59:30 +0200
changeset 53
78b580bfde33
parent 52
26707039d5a6
child 54
eef745ba3774

fixed new network games starting with BLACK

src/game.c file | annotate | diff | comparison | revisions
--- a/src/game.c	Wed Jul 02 15:09:17 2014 +0200
+++ b/src/game.c	Wed Aug 26 12:59:30 2015 +0200
@@ -529,7 +529,7 @@
         opponent_color(settings->gameinfo.servercolor);
     
     _Bool myturn = (gamestate->lastmove ?
-        (gamestate->lastmove->move.piece & COLOR_MASK) : WHITE) != mycolor;
+        (gamestate->lastmove->move.piece & COLOR_MASK) : BLACK) != mycolor;
     
     _Bool running;
     do {

mercurial