🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #810

Inventory Fix in mkobj.c

#810
From: Ken Arnold%CGL
Date: Sun, 23 Jun 1985 00:53
31 lines
1547 bytes
The following is a minor fix to hack.  I finally got tired of having
multiple groups of the same kind of food, which makes keeping track
of things difficult.  The problem was that certain fields were not getting
initialized, so the "spe" field, especially, was different for different
pieces of food, even though the field isn't used for food.  The following
is the fix, as a context diff (as all hack updates should come).

----- CUT HERE -----
*** /tmp/,RCSt1006751	Sat Jun 22 17:49:55 1985
--- hack.mkobj.c	Sat Jun 22 17:40:41 1985
***************
*** 56,61
  	otmp->age = moves;
  	otmp->o_id = flags.ident++;
  	otmp->quan = 1;
  	otmp->olet = let;
  	otmp->otyp = otyp;
  	otmp->dknown = index("/=!?*", let) ? 0 : 1;

--- 56,65 -----
  	otmp->age = moves;
  	otmp->o_id = flags.ident++;
  	otmp->quan = 1;
+ 	otmp->spe = 0;
+ 	otmp->known = 0;
+ 	otmp->dknown = 0;
+ 	otmp->cursed = 0;
  	otmp->olet = let;
  	otmp->otyp = otyp;
  	otmp->dknown = index("/=!?*", let) ? 0 : 1;
Technical Details
Message-ID: <553@ucsfcgl.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!ucbvax!ucsfcgl!arnold

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site ucsfcgl.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!ucbvax!ucsfcgl!arnold
From: arnold@ucsfcgl.UUCP (Ken Arnold%CGL)
Newsgroups: net.games.hack
Subject: Inventory Fix in mkobj.c
Message-ID: <553@ucsfcgl.UUCP>
Date: Sat, 22-Jun-85 20:53:39 EDT
Article-I.D.: ucsfcgl.553
Posted: Sat Jun 22 20:53:39 1985
Date-Received: Mon, 24-Jun-85 20:22:23 EDT
Reply-To: arnold@ucsfcgl.UUCP ()
Organization: UCSF Computer Graphics Lab
Lines: 31