Message-ID: <3D444975.7040908@csi.com>
Date: Sun, 28 Jul 2002 15:43:49 -0400
From: John Colagioia <JColagioia@csi.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: rec.arts.int-fiction
Subject: Re: [INFORM[ SetTime()
References: <3d43c8ce.15232679@news.demon.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Original-NNTP-Posting-Host: ool-182f30fa.dyn.optonline.net
X-Trace: excalibur.gbmtech.net 1027884985 ool-182f30fa.dyn.optonline.net (28 Jul 2002 15:36:25 -0400)
Organization: ProNet USA Inc.
Lines: 35
X-Authenticated-User: jnc
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.abs.net!uunet!dca.uu.net!excalibur.gbmtech.net
Xref: news.duke.edu rec.arts.int-fiction:106667

Doug Roberts wrote:
> OK, wonder if anyone can explain why, and how to get around the
> behaviour of this...
> Once I call SetTime() the scoreline no longer uses the number of turns
> or the actual score. Instead it is represented as this:
>  Score  {hours}	Moves{minutes}
> I'd like to have the score and turns represented properly, but still
> have the time available, used in daemons and the PC's watch.

Looks like the culprit is the following code out of
ParserM.H:

[ DisplayStatus;
    if (the_time==NULL)
    {   sline1=score; sline2=turns; }
    else
    {   sline1=the_time/60; sline2=the_time%60; }
];

You should be able to Replace this Routine in your
code, with:

Replace DisplayStatus;
! ...Includes, code, etc...
[ DisplayStatus;
  sline1=score; sline2=turns;
];

which assumes that the_time (which is set by
SetTime()) is always NULL, in comparison.

Whether that, in turn, screws up something else, I
didn't honestly think to check, though.  It's...uhm...
left as an exercise for the reader.  Yeah, that's it.

