🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #881

world bugfix

#881
From: Wayne Davison
Date: Wed, 12 Aug 1987 00:13
42 lines
1854 bytes
Here's a minor bugfix to world.  If you've been unable to remove your pants
without specifying their color, this will take care of it.  A quick perusal
of the pants/shirt selection code revealed this minor "if" nesting error in
the de-ambiguity section.


*** helper.c.orig	Tue Jul 28 18:36:03 1987
--- helper.c	Tue Aug 11 17:37:35 1987
***************
*** 578,589 ****
  			result = RPANT;
  		    else
  			result = LPANT;
! 		} else if (wrdnum[0] == DROP)
  		    if (((g1 == 1) || (g1 == 3)) && g2 != 1 && g2 != 3)
  			result = RPANT;
! 		if (((g2 == 1) || (g2 == 3)) && g1 != 1 && g1 != 3)
! 		    result = LPANT;
! 		else
  		    result = -1;
  	    } else if (don == SHIRT) {
  		itsher(RSHIRT, &g1);

--- 578,589 ----
  			result = RPANT;
  		    else
  			result = LPANT;
! 		} else if (wrdnum[0] == DROP) {
  		    if (((g1 == 1) || (g1 == 3)) && g2 != 1 && g2 != 3)
  			result = RPANT;
! 		    if (((g2 == 1) || (g2 == 3)) && g1 != 1 && g1 != 3)
! 			result = LPANT;
! 		} else
  		    result = -1;
  	    } else if (don == SHIRT) {
  		itsher(RSHIRT, &g1);

--
 Wayne Davison					      ...amdahl!drivax!davison
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	   Ziol soft ol of egrt.  Stz'l ltt oy ngx eqf rteohitk oz.
	       Oy ngx rg, hstqlt rkgh dt q fgzt zg stz dt afgv.
Technical Details
Message-ID: <2204@drivax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!amdahl!drivax!davison

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!amdahl!drivax!davison
From: davison@drivax.UUCP (Wayne Davison)
Newsgroups: comp.sources.bugs
Subject: world bugfix
Message-ID: <2204@drivax.UUCP>
Date: Tue, 11-Aug-87 20:13:37 EDT
Article-I.D.: drivax.2204
Posted: Tue Aug 11 20:13:37 1987
Date-Received: Sat, 15-Aug-87 04:45:52 EDT
Reply-To: davison@drivax.UUCP (Wayne Davison)
Organization: Digital Research, Inc.
Lines: 42