Article View: comp.sources.bugs
Article #896Minor fixes to NetHack 1.4f
From: Ralf Brown
Date: Thu, 20 Aug 1987 23:57
Date: Thu, 20 Aug 1987 23:57
53 lines
1902 bytes
1902 bytes
The new 1.4f version of NetHack has a number of typos!
-----
In decl.c and zap.c,
change
'\'
to
'\\'
(unterminated character constant error)
-----
In prisym.c, change
symbol.room
to
ROOM_SYM
("symbol" does not exist)
-----
In msdos.c, change
symbol = s ;
to
showsyms = s ;
(again, "symbol" does not exist)
-----
Finally, two minor changes for Turbo C:
in makedefs.c, exchange the include statements for config.h and stdio.h
(getchar winds up multiply #defined in the given order)
in shk.c, move the declaration
struct obj *carrying() ;
outside of the function inshop() to prevent a (spurious? YA TC bug?) type
mismatch error in a later function.
-----
Also, the fileinfo[] array of structures needs to be zeroed out (at least
the "where" field) at the beginning. Uninitialized global arrays are not
zeroed out in Turbo C (and probably many other compilers), so I get a crash
on trying to go down to level 2, because fileinfo[2].where is nonzero--
which is supposed to mean the level exists!
--
-=-=-=-=-=-=-=-= {harvard,seismo,ucbvax}!b.gp.cs.cmu.edu!ralf =-=-=-=-=-=-=-=-
ARPAnet: RALF@B.GP.CS.CMU.EDU BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA
AT&Tnet: (412) 268-3053 (school) FIDOnet: Ralf Brown at 129/31
DISCLAIMER? Who ever said I claimed anything?
"I do not fear computers. I fear the lack of them..." -- Isaac Asimov
Technical Details
Message-ID:
<83@b.gp.cs.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!rutgers!rochester!PT!b.gp.cs.cmu.edu!ralfShow 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!uwvax!rutgers!rochester!PT!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sources.bugs Subject: Minor fixes to NetHack 1.4f Message-ID: <83@b.gp.cs.cmu.edu> Date: Thu, 20-Aug-87 19:57:58 EDT Article-I.D.: b.83 Posted: Thu Aug 20 19:57:58 1987 Date-Received: Sun, 23-Aug-87 06:08:52 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 53