Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!pt!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sources.d,rec.games.hack Subject: NetHack runs under Turbo C (Addition and Correction) Message-ID: <73@b.gp.cs.cmu.edu> Date: Sat, 1-Aug-87 21:15:26 EDT Article-I.D.: b.73 Posted: Sat Aug 1 21:15:26 1987 Date-Received: Sun, 2-Aug-87 10:48:33 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 24 Xref: mnetor comp.sources.d:1025 rec.games.hack:1017 Oops! Somehow I managed to overwrite PCMAIN.C with a slightly older copy, so when I remade NetHack to incorporate the addition that follows, it aborted right at the beginning. In the call to gethdate() in PCMAIN.C, change the argument to argv[0] ? argv[0] : "hack.exe" so that it can find itself to determine whether save files are outdated by a new version of the program. Also, in the makefile, add the rule tcc -c $(CFLAGS) -d- $* to the dependency for RIP.C. Without the "-d-" flag, the compiler will merge the strings forming the center of the tombstone, so the tombstone will contain four lines of the same jumbled-together characters from the four lines that should be written. (the implicit rule is the same as the above explicit rule, but without the -d-) -- -=-=-=-=-=-=-=-= {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