[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] compile error: gnubg.c no-gui Win32
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] compile error: gnubg.c no-gui Win32 |
Date: |
Tue, 2 Dec 2003 15:53:25 +0100 |
User-agent: |
Mutt/1.4.1i |
On Tue 02 Dec 2003 (14:43 +0100), Nardy Pillards wrote:
>
> Is it OK to change (for the no-gui to get build):
>
> -----
> #if USE_GTK
>
> if ( fX && GTKGetMove( anMove ) ) {
> /* we have a legal move in the GUI */
> /* Note that we override the move from the movelist */
> MoveKey ( ms.anBoard, anMove, auch );
> fHasMoved = TRUE;
> }
> #endif /* ! USE_GTK */
>
> if ( !fHasMoved && plLastMove && ( pmr = plLastMove->plNext->p ) &&
>
> pmr->mt == MOVE_NORMAL ) {
> /* we have an old stored move */
> memcpy( anMove, pmr->n.anMove, sizeof anMove );
> MoveKey( ms.anBoard, anMove, auch );
> fHasMoved = TRUE;
> }
> -----
>
> so it reads:
>
> -----
> #if USE_GTK
>
> if ( fX && GTKGetMove( anMove ) ) {
> /* we have a legal move in the GUI */
> /* Note that we override the move from the movelist */
> MoveKey ( ms.anBoard, anMove, auch );
> fHasMoved = TRUE;
> }
>
> if ( !fHasMoved && plLastMove && ( pmr = plLastMove->plNext->p ) &&
>
> pmr->mt == MOVE_NORMAL ) {
> /* we have an old stored move */
> memcpy( anMove, pmr->n.anMove, sizeof anMove );
> MoveKey( ms.anBoard, anMove, auch );
> fHasMoved = TRUE;
> }
> #endif /* ! USE_GTK */
^
Minor point:
Not Nardy's doing, but the comment is wrong and ought to be fixed.
--
Jim Segrave address@hidden