Commit Graph

744 Commits

Author SHA1 Message Date
nethack.allison
6cfec715ac no message 2002-01-24 20:39:16 +00:00
nethack.allison
eed0831f28 Fix a crash-causing null pointer dereference.
(Thanks to Yitzhak)
2002-01-24 18:21:24 +00:00
warwick
654a297052 MacOSX/Qt system tweaks
These changes clean up build warnings and allow the resulting "NetHack"
Application icons to be dragged around freely in the Finder, as is expected
for Mac apps.
2002-01-24 05:49:04 +00:00
arromdee
3c240e9b4a piranha
An extra space in the piranha entry was causing it not to work.
2002-01-24 04:43:49 +00:00
cohrs
04ecb2e1a2 window.doc getlin clarification
Clarify the getlin interface, which is used with the implicit assumption
that an input buffer of size BUFSZ (including the nul) is sufficient.
2002-01-24 03:13:56 +00:00
nethack.rankin
ef8f180fbc more GOLDOBJ
The earlier patch made sure that bribe() didn't pass an
invalid value to money2mon().  This one changes money2mon() so
that if some other code else does so, reporting the impossible
situation won't be followed by a splitobj panic.  Most of this
patch is reformatting though.
2002-01-24 02:54:06 +00:00
nethack.allison
659f5be714 Updates to Makefile.bcc (from Yitzhak) 2002-01-24 02:50:35 +00:00
nethack.allison
4c46f6eb2b Fix several touchstone-related things:
1. The switch statement was using the material "GOLD"
   rather than GOLD_CLASS.
2. If getobj() had been working for gold when it
   came to touchstones, there would have been a
   memory leak here because the object returned
   would have been from mkgoldobj().  The goldobj
   was not being freed anywhere, nor was it being
   put on a chain. You also would have had zero
   gold after rubbing it on the stone. The intent
   was clearly to allow gold since there was a
   case in the switch statement.
3. getobj() wasn't working properly for gold
   selection here anyway, so this was
   not the cause of <Someone>'s gold obj in inventory.
   You ended up dropping through to code that
   was supposed to print "You cannot verb object."
   For touchstones that came out as:
   "You cannot rub on the stone gold."
2002-01-24 02:39:55 +00:00
cohrs
3fc3ef8537 another vision-related message
don't just say "the knife misses" when you can actually see the monster
with infravision by testing using the correct function
2002-01-24 02:34:52 +00:00
nethack.rankin
6876df1b2d bribe fix for GOLDOBJ 2002-01-24 00:39:56 +00:00
nethack.allison
7d593cb1d6 bit 2002-01-23 20:13:15 +00:00
cohrs
1a7aa0933e another WIZKIT fix
previous rev put the new "else" in the wrong place
2002-01-23 18:23:54 +00:00
cohrs
4b677185de another WIZKIT fix
if $HOME is not set, don't use uninitialized buffer as the filename to open
2002-01-23 18:06:19 +00:00
nethack.allison
0011db11d3 wizkit fix 2002-01-23 17:52:53 +00:00
nethack.allison
579a42103e typo fix
with -> which
2002-01-23 17:06:04 +00:00
nethack.allison
f06b3dc9bf These are the patches. In general, they seem
to fix general problems that MSC didn't catch, but I can't tell.

Yitzhak Sapir
2002-01-23 15:14:57 +00:00
warwick
dc493d6af2 Enough MacOS X documentation to answer FAQs. 2002-01-23 07:57:11 +00:00
nethack.rankin
bbf7ada0dd micro fopenp() fix
From a bug report.  I can't test this fix, but
inspection of the code shows that his suggested fix is clearly
necessary.  Once `bp' gets incremented, storing via `bp[BUFSZ-1]'
writes beyond the bounds of `buf' and clobbers something.
2002-01-23 07:12:58 +00:00
nethack.allison
994dbd7694 fixes bit
Now that there are two different NT ports,
distinguish between them for fixes entries.
2002-01-23 06:52:15 +00:00
kmhugo
bd37d68a51 Mac docs update
This is mostly to test the commit scripts...
2002-01-23 06:41:34 +00:00
warwick
43df47917e Qt/MacOSX: change working directory
chdir to resource fork when running from finder (find leaves us in "/", we
want to be in nethack playground).
2002-01-23 06:24:30 +00:00
cohrs
a80a7ab939 X11 buffer overflow avoidance
Don't overflow the buffer passed to getlin().
2002-01-23 06:21:58 +00:00
dean
84b72da0eb update unused pragmas Update some of the mac pragmas for unused variables for the MPW compilers. 2002-01-23 06:14:21 +00:00
nethack.allison
6f45c9c5ff Fix some Guidebook mistakes (tex dungeoneer table for one)
Also shorten up levcomp.dsp lines
2002-01-23 04:35:39 +00:00
warwick
fe5a464dc3 Always use maximized window in Qt windowport. 2002-01-23 03:03:37 +00:00
warwick
a89b941f5b MacOSX: no lrand48()
No lrand48() on MacOSX, since MacOSX is really BSD.
2002-01-23 02:26:02 +00:00
arromdee
af6a8574e0 minor things
Two unrelated tids.  I wouldn't bother putting them into Beta 1. :-)
2002-01-23 01:41:53 +00:00
nethack.allison
9d0a5acab1 Extraneous file removed as I head out the door of the office. 2002-01-23 01:21:54 +00:00
warwick
93c5ecf3ea Qt GUI cleanup
Use "Alt+X", not "Alt-X".
This is actually *necessary* on MacOSX.
2002-01-23 01:02:37 +00:00
nethack.allison
f48b00f5f5 It was ignoring the command line parameters
because there was an extraneous argv[1] that was
a repeat of the module name, but in quotation
marks.  The processing in pcmain stops on the first
argument that doesn't start with '-' so my other
arguments got ignored.

 argv[0] 0x00b40800 "C:\test\binary\nethackw.exe"
 argv[1] 0x00b40878 ""C:\test\binary\nethackw.exe""
 argv[2] 0x00b408f0 "-uwizard"
 argv[3] 0x00b40938 "-D"
2002-01-23 00:00:02 +00:00
nethack.allison
1b91f47b4c Remove all uses of pushd/popd
in case someone  wants to build on Windows98 where they don't exist.
They are available in NT or Windows 2000 only (and possibly XP).
2002-01-22 22:54:54 +00:00
nethack.allison
b54f1c2089 Update ./Files to match file rename for win32. 2002-01-22 13:10:53 +00:00
nethack.allison
9dd3932af6 rename winhack.dsp to nethackw.dsp
Adjust Install.nt to match.
Modify Makefile.nt to use ../binary directory for output by default,
just like the windows version does.
2002-01-22 13:02:13 +00:00
nethack.allison
6f645f89c0 rename winhack.dsp to nethackw.dsp
Actually removes winhack.dsp and adds nethackw.dsp.
2002-01-22 12:55:49 +00:00
nethack.rankin
daf7cda0ee generated lex output 2002-01-22 09:27:01 +00:00
warwick
3c0c8b0516 Fix some crashes in unused tile editor.
tileedit is the program I use to edit tile files (directly).
2002-01-22 08:44:37 +00:00
warwick
dab3df306f Remove win/Qt/nethack.png
Obsoleted by nhsplash.xpm (a text format). The binary still has more detail,
but until someone has a use for it, I'll keep it aside.
2002-01-22 08:41:57 +00:00
warwick
5861942805 Doc fix for Install.Qt
(USER_SOUNDS now undeffed automaticaaly for old versions)
2002-01-22 08:39:00 +00:00
nethack.rankin
4f032d38ec airplane/taxi transportation
The player can teleport objects and monsters on no-teleport
levels, a strange quirk which I think has become entranched as
a feature.  When swallowed or engulfed, teleporting the monster
from inside ends up teleporting the character along with that
monster.  Some players have been exploting this on Plane of Air
to avoid facing elementals and dragons and whatnot by repeatedly
teleporting any vortex that engulfs them until they land somewhere
in the vicinity of the portal leading to Plane of Fire.

     This patch divides the Plane of Air into three zones that
teleportation can't cross.  You'll arrive in the left-hand 30% of
the level, as before, but no longer at a specific spot.  The exit
portal is in the right-hand 30% as before (although it used to
have more range, perhaps 40%).  Teleporting within the left 30%
always arrives in that same area; within the central 40% always
remains within that same area; and teleporting within the right
30% always sticks in that area.  So it's still possible to get
around quite a bit via multiple teleports, but you'll need to walk
at least across the two unmarked boundaries to actually traverse
the whole level.

     A moderately long description for a very short patch....
2002-01-22 06:59:00 +00:00
nethack.allison
2d5361e389 From <Someone>,
Fixes:
- menu shortcuts implemented
- most windows close on space (except for menus with
  PICK_ANY style)
- "hilite_pet" option is implemented
- map scrolling is improved somewhat (it now scrolls if
  the char is within 5 spaces from the edge of the map -
  configurable by #define CLIPAROUND_MARGIN)
- added 3  winhack-specific options:

 win32_map_mode:[tiles|ascii4x6|ascii6x8|ascii8x8
                 |ascii16x8|ascii7x12|ascii8x12|ascii15x12
                 |ascii12x16|ascii10x18|fit_to_screen]=20
 win32_align_status:[left|top|right|bottom]
 win32_align_message:[left|top|right|bottom]

Note: aligning status window to left or right edge of the screen does
not look good.
2002-01-22 00:30:58 +00:00
nethack.allison
5dd46c18ae Add petmark.uu 2002-01-22 00:29:35 +00:00
arromdee
c8c7c22a92 swallowing zombies/mummies 2002-01-21 22:54:17 +00:00
arromdee
b7b85375c5 polymorphed quest leader
Duuuh.  Of course adding objects already changed the editlevel.

Anyway, here's the fix I was working on.  It only matters in a very obscure
situation.  (Also, the quest leader still speaks no matter what he's
polymorphed into.)
2002-01-21 22:25:04 +00:00
arromdee
166affb0f9 polymorphed quest leader
Duuuh.  Of course adding objects already changed the editlevel.

Anyway, here's the fix I was working on.  It only matters in a very obscure
situation.  (Also, the quest leader still speaks no matter what he's
polymorphed into.)
2002-01-21 22:15:22 +00:00
warwick
751cbf93ae Tile un-placehold 2002-01-21 10:41:42 +00:00
nethack.rankin
3fa0d46f6d fixes fixes 2002-01-21 07:17:25 +00:00
warwick
f4b9ff3f16 Fix "Files" file for files from Qt windowport. 2002-01-21 05:50:23 +00:00
warwick
75305dc3b3 Qt compatibility fixes
Fixes for Qt version 2.0 (old).
2002-01-21 05:17:40 +00:00
warwick
58b5454a35 Player selection fix on Qt windowport.
Prompt for player details even if gender or alignment is unspecified.
2002-01-21 05:15:06 +00:00
cohrs
6a637d21a5 spells doing negative damage
Add a check to zhitm to ensure that spells cast by characters with low XL
and Int will not do negative damage.
2002-01-21 03:41:21 +00:00