billr@saab.CNA.TEK.COM (Bill Randle) (02/12/91)
Submitted-by: routley@tle.ENET.DEC.COM (Kevin Routley) Posting-number: Volume 12, Issue 33 Archive-name: larn/Patch2 Patch-To: larn: Volume 11, Issue 84-95 Environment: Unix, VMS, MS-DOS, termcap [Patch2 fixes some minor bugs, see the PATCHLOG file. -br] #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of shell archive." # Contents: patches02 # Wrapped by billr@saab on Mon Feb 11 10:30:09 1991 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'patches02' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'patches02'\" else echo shar: Extracting \"'patches02'\" \(8563 characters\) sed "s/^X//" >'patches02' <<'END_OF_FILE' X*** patchlevel_orig.h Sun Feb 10 18:25:09 1991 X--- patchlevel.h Sun Feb 10 18:25:06 1991 X*************** X*** 1 **** X! #define PATCHLEVEL 1 X--- 1 ---- X! #define PATCHLEVEL 2 X*** PATCHLOG_orig Sun Feb 10 18:25:16 1991 X--- PATCHLOG Sun Feb 10 18:25:13 1991 X*************** X*** 1,15 **** X Patch1 X ====== X X Fixes the problem where no .larnopts file causes the dungeon to not be X! displayed. Selects the "hack-like" objects: X X Fixes the SIGSEV (ACCVIO) problem with the '?' command. Append trailing blank X lines to the help file. X X Courtesy of jef@helios.ee.lbl.gov (Jef Poskanzer). Bug in cursor postioning X! (only appears on certain terminals) X X Courtesy of nethack.rankin@eql.caltech.edu (Pat Rankin). spells and spheres X missing from the MMS file, link against the VAXCRTL sharable instead of the X! object library [how someone on VMS is supposed to use a U*ix diff,I don't know]. X--- 1,30 ---- X+ Patch2 X+ ====== X+ X+ Courtesy of Pat Rankin (nethack.rankin@EQL.Caltech.Edu). In the on-line X+ help, fix the spelling mistakes with 'wield', and change the spell-casting X+ lister from 'D' to 'I', as its implemented [plain-text only]. X+ X+ Courtesy of Kenichi Yaoita (yaoita@cm.phys.keio.ac.jp), with an X+ honorable mention to Andreas Chernov (ache@hq.demos.su). Fix X+ the inventory count code, which is performing invalid comparisons X+ (<=26 vs <26). X+ X+ Also courtesy of Kenichi Yaoita, fix an invalid screen offset in X+ bot_spellx(). X+ X Patch1 X ====== X X Fixes the problem where no .larnopts file causes the dungeon to not be X! displayed. Selects the "hack-like" objects. X X Fixes the SIGSEV (ACCVIO) problem with the '?' command. Append trailing blank X lines to the help file. X X Courtesy of jef@helios.ee.lbl.gov (Jef Poskanzer). Bug in cursor postioning X! (only appears on certain terminals). X X Courtesy of nethack.rankin@eql.caltech.edu (Pat Rankin). spells and spheres X missing from the MMS file, link against the VAXCRTL sharable instead of the X! object library. X*** display_orig.c Sun Feb 10 18:24:19 1991 X--- display.c Sun Feb 10 18:24:12 1991 X*************** X*** 131,137 **** X */ X static bot_spellx() X { X! botsub(SPELLS,9,18,"%2d"); X } X X /* X--- 131,137 ---- X */ X static bot_spellx() X { X! botsub(SPELLS,8,18,"%3d"); X } X X /* X*** larnhlp_orig.txt Sun Feb 10 18:24:36 1991 X--- larnhlp.txt Sun Feb 10 18:24:31 1991 X*************** X*** 37,43 **** X i inventory your pockets I list all items found ? this help screen X q quaff a potion Q quit the game X r read a scroll v print program version X! w weild a weapon W wear armor ^L redraw the screen X X X X--- 37,43 ---- X i inventory your pockets I list all items found ? this help screen X q quaff a potion Q quit the game X r read a scroll v print program version X! w wield a weapon W wear armor ^L redraw the screen X X X X*************** X*** 65,71 **** X t tidy up at a fountain T take off armor X u move northeast U run northeast X v print program version X! w weild a weapon W wear armor X y move northwest Y run northwest ^L redraw the screen X Special Notes X X--- 65,71 ---- X t tidy up at a fountain T take off armor X u move northeast U run northeast X v print program version X! w wield a weapon W wear armor X y move northwest Y run northwest ^L redraw the screen X Special Notes X X*************** X*** 80,86 **** X X When in the store, trading post, school, or home, an m<escape> will get you out. X X! When casting a spell, if you need a list of spells you can cast, type 'D' as X the first letter of your spell. The available list of spells will be shown, X after which you may enter the spell code. This only works on the 1st letter X of the spell you are casting. X--- 80,86 ---- X X When in the store, trading post, school, or home, an m<escape> will get you out. X X! When casting a spell, if you need a list of spells you can cast, type 'I' as X the first letter of your spell. The available list of spells will be shown, X after which you may enter the spell code. This only works on the 1st letter X of the spell you are casting. X*** main_orig.c Sun Feb 10 18:25:03 1991 X--- main.c Sun Feb 10 18:24:49 1991 X*************** X*** 516,522 **** X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<=26; j++) /* count number of items we will display */ X if (i=iven[j]) X switch(i) X { X--- 516,522 ---- X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<26; j++) /* count number of items we will display */ X if (i=iven[j]) X switch(i) X { X*************** X*** 529,535 **** X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<=26; j++) X if (i==iven[j]) X switch(i) X { X--- 529,535 ---- X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<26; j++) X if (i==iven[j]) X switch(i) X { X*************** X*** 550,556 **** X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<=26; j++) /* count how many items */ X if (i=iven[j]) X switch(i) X { X--- 550,556 ---- X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<26; j++) /* count how many items */ X if (i=iven[j]) X switch(i) X { X*************** X*** 564,570 **** X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<=26; j++) X if (i==iven[j]) X switch(i) X { X--- 564,570 ---- X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<26; j++) X if (i==iven[j]) X switch(i) X { X*************** X*** 586,592 **** X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<=26; j++) X switch(iven[j]) X { X case OBOOK: case OSCROLL: count++; X--- 586,592 ---- X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<26; j++) X switch(iven[j]) X { X case OBOOK: case OSCROLL: count++; X*************** X*** 594,600 **** X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<=26; j++) X if (i==iven[j]) X switch(i) X { X--- 594,600 ---- X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<26; j++) X if (i==iven[j]) X switch(i) X { X*************** X*** 612,618 **** X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<=26; j++) X switch(iven[j]) X { X case OCOOKIE: count++; X--- 612,618 ---- X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<26; j++) X switch(iven[j]) X { X case OCOOKIE: count++; X*************** X*** 620,626 **** X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<=26; j++) X if (i==iven[j]) X switch(i) X { X--- 620,626 ---- X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<26; j++) X if (i==iven[j]) X switch(i) X { X*************** X*** 638,644 **** X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<=26; j++) X switch(iven[j]) X { X case OPOTION: count++; X--- 638,644 ---- X sigsav=nosignal; nosignal=1; /* don't allow ^c etc */ X srcount=0; X X! for (count=2,j=0; j<26; j++) X switch(iven[j]) X { X case OPOTION: count++; X*************** X*** 646,652 **** X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<=26; j++) X if (i==iven[j]) X switch(i) X { X--- 646,652 ---- X t_setup(count); X X for (i=22; i<84; i++) X! for (j=0; j<26; j++) X if (i==iven[j]) X switch(i) X { END_OF_FILE if test 8563 -ne `wc -c <'patches02'`; then echo shar: \"'patches02'\" unpacked with wrong size! fi # end of 'patches02' fi echo shar: End of shell archive. exit 0