🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5171

Bug in init.c

#5171
From: Chua Kong Sian
Date: Thu, 07 Apr 1994 10:20
15 lines
920 bytes
There is a minor bug in init.c.  Look for the following 2 lines.

  PCRASH = PCRASHS + dither?(rand() % PCRASHV):0;
  PCENTER = PCENTERS + dither?(rand() % PCENTERV):0;

Replace these with the following. (extra parenthesis added).

  PCRASH = PCRASHS + (dither?(rand() % PCRASHV):0);
  PCENTER = PCENTERS + (dither?(rand() % PCENTERV):0);


Regards.

Kong Sian
Technical Details
Message-ID: <2o0mq5$ne4@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,f66590aa9f387087,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-04-07 03:20:53 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks
From: nsrccks@leonis.nus.sg (Chua Kong Sian)
Newsgroups: gnu.chess
Subject: Bug in init.c
Date: 7 Apr 1994 10:20:53 GMT
Organization: National University of Singapore
Lines: 16
Message-ID: <2o0mq5$ne4@nuscc.nus.sg>
NNTP-Posting-Host: leonis.nus.sg
X-Newsreader: TIN [version 1.2 PL0]