[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] discreet comments in simultaneous 3-player games
I see. Thanks. How about inserting before line 147 of game.cpp:
else if(strncmp((*this)[start],"--",2) && strncmp((*this)[start],"__",2))
and then either hacking into a possible former comment:
if(start>1 && (!strncmp((*this)[1],"--",2) || !strncmp((*this)[1],"__",2)))
(*this)[1][1] = ' '; /* slightly alter the first comment */
or neatly setting a flag
isinteresting = true;
and, in this case, shortening line 692, 699 and 703 of game.cpp into
(comment.isinteresting?" **":"");
and defining the flag before line 72 in game.h by
bool isinteresting;
and setting it initially to false somewhere in game.cpp where the board
is created?
Claude Chaunier
Richard Rognlie wrote:
> Hrm... line 692 of game.cpp
>
> if the first line of the "comments" is '--' or '__', the "**" is not
> added
>
> On Wed, Jul 11, 2001 at 03:49:49PM +0200, Claude Chaunier wrote:
> > andidi writes:
> > _______________________________________________________________
> > chaunier writes:
> > !tuvo gracia!