bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Tutor mode patches for gnubg


From: Øystein O Johansen
Subject: Re: [Bug-gnubg] Tutor mode patches for gnubg
Date: Wed, 24 Jul 2002 12:07:57 +0200

> If anyone can tell me why clicking the Tutor box in the
> Settings/Options menu doesn't make a permanent change,
> I'd appreciate that as well.

It's the CHECKUPDATE macro. In the OptionsOK() in gtkgame.c it should read:

  CHECKUPDATE(pow->pwTutor, fTutor, "set tutor %s")

instead of:

  CHECKUPDATE(pow->pwTutor, fTutor, "warn about errors in play %s")

For those who apply this patch:
There is a function declaration missing in gtkgame.h, I guess.
You should add this declaration to the file:

extern int GtkTutor ( char *sz );

Some small unimportant things:

In play.c, ShouldDouble(),
  an array float aarStdDev[ 2 ][ NUM_ROLLOUT_OUTPUTS ]; is not in use I
believe.

In gtkgame.c there's a global pointer defined as pwTutorial. I don't think
this in use. Can be removed.

In gtkgame.c, GtkTutor() it's possible to comment out the line #include
"gnu.xpm"

Thanks again Jim!
-Øystein




-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]