🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #1669

Re: xroach problems.

#1669
From: Earle Ake
Date: Sat, 30 Mar 1991 02:51
54 lines
2207 bytes
In article <1991Mar30.021403.7505@comp.vuw.ac.nz>, Edmund.Stephen-Smith@comp.vuw.ac.nz (Edmund Stephen-Smith) writes:

> Diff follows (ie. delete the five lines with minus signs at the front),
> 
> Ed.
> 
> 
> *** xroach.c~   Sat Mar 30 13:51:26 1991
> --- xroach.c    Sat Mar 30 13:55:28 1991
> ***************
> *** 407,417 ****
>         if (roach->intX >= 0) {
>             XClearArea(display, rootWin, roach->intX, roach->intY,
>                 roach->rp->width, roach->rp->height, False);
> -       }
> -     }
> -
> -     for (rx=0; rx<curRoaches; rx++) {
> -       roach = &roaches[rx];
> 
>         if (!roach->hidden) {
>             roach->intX = roach->x;
> --- 407,412 ----


	I think the patch should have been:


*** xroach.c~   Sat Mar 30 13:51:26 1991
--- xroach.c    Sat Mar 30 13:55:28 1991
***************
*** 407,417 ****
        if (roach->intX >= 0) {
            XClearArea(display, rootWin, roach->intX, roach->intY,
                roach->rp->width, roach->rp->height, False);
        }
-     }
-
-     for (rx=0; rx<curRoaches; rx++) {
-       roach = &roaches[rx];

        if (!roach->hidden) {
            roach->intX = roach->x;
--- 407,413 ----

	You still need the "}" in 410 to close off the if statement above it.

Earle
_____________________________________________________________________________
             ____ ____    ___
Earle Ake   /___ /___/ / /     Science Applications International Corporation
           ____//   / / /__                 Dayton, Ohio
-----------------------------------------------------------------------------
Internet: ake@dayton.saic.com        uucp: dayvb!ake         SPAN: 28284::ake
Technical Details
Message-ID: <1991Mar29.225125.1551@dayton.saic.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!ames!ucsd!mvb.saic.com!dayton.saic.com!ake
References: <1509@culhua.prg.ox.ac.uk> <1991Mar30.021403.7505@comp.vuw.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!ames!ucsd!mvb.saic.com!dayton.saic.com!ake
From: ake@dayton.saic.com (Earle Ake)
Newsgroups: comp.sources.d,comp.sources.bugs
Subject: Re: xroach problems.
Message-ID: <1991Mar29.225125.1551@dayton.saic.com>
Date: 30 Mar 91 02:51:25 GMT
References: <1509@culhua.prg.ox.ac.uk> <1991Mar30.021403.7505@comp.vuw.ac.nz>
Organization: Science Applications Intl. Corp., Dayton, Ohio
Lines: 54