Thread View: gnu.chess
1 messages
1 total messages
Started by eddins
Fri, 23 Mar 1990 01:33
Fix to -n option in xchess
Author: eddins
Date: Fri, 23 Mar 1990 01:33
Date: Fri, 23 Mar 1990 01:33
24 lines
1451 bytes
1451 bytes
The "-n" switch in xchess (beep after every move) causes a core dump
if there is only one window. This is the case when playing gnuchess,
for example. Apply the following diff to control.c (as distributed
with gnuchess 3.0) to fix the problem. Note: please send me mail if
there is a better group to post to about xchess.
30a31
> #include <stdio.h>
237,238c238,245
< XBell(win1->display, 50);
< XBell(win2->display, 50);
---
> if (win1 != NULL)
> {
> XBell(win1->display, 50);
> }
> if (win2 != NULL)
> {
> XBell(win2->display, 50);
> }
Steve Eddins
Georgia Tech, PO 33575, School of Elec Eng, Atlanta, GA 30332-0250
internet: eddins@eedsp.gatech.edu uucp: gatech!eedsp!eddins
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads