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
     1.1 --- a/src/game.c	Wed Jul 02 15:09:17 2014 +0200
     1.2 +++ b/src/game.c	Wed Aug 26 12:59:30 2015 +0200
     1.3 @@ -529,7 +529,7 @@
     1.4          opponent_color(settings->gameinfo.servercolor);
     1.5      
     1.6      _Bool myturn = (gamestate->lastmove ?
     1.7 -        (gamestate->lastmove->move.piece & COLOR_MASK) : WHITE) != mycolor;
     1.8 +        (gamestate->lastmove->move.piece & COLOR_MASK) : BLACK) != mycolor;
     1.9      
    1.10      _Bool running;
    1.11      do {

mercurial