Commit Graph

2362 Commits

Author SHA1 Message Date
cohrs
494b133ec2 getobj using counts from inventory display
getobj used display_inventory when "?" was selected.  However, any count
entered via the menu interface was lost.  Provide a new internal function
that can return both a letter and a count
2002-01-26 20:21:18 +00:00
nethack.allison
1454fb5e71 touchstone ugly check didn't take GOLDOBJ into consideration. 2002-01-26 15:16:06 +00:00
nethack.allison
69ce21fe0b Add a macro to provide universal consistency around the check
for what sort of creatures tend to revive.
2002-01-26 15:05:00 +00:00
nethack.allison
5482d1ab74 some special code
was added, specific to menustyle:combination in
menu_drop(), which short-circuited a redundant
prompt that <Someone> had complained about by returning
immediately if a special code came back from
ggetobj() in ggoresults.

The top of menu_drop, however, had created a
u_gold object and inserted it into the invent
chain, so you can't just return.  You have
to use a "goto" to get to drop_done, so that
the object is cleaned up.
2002-01-26 04:06:26 +00:00
arromdee
02a39530ab fixes tid 2002-01-26 02:32:32 +00:00
arromdee
5182c9110e secret door detection
There was an old bug where a wand of secret door detection was identified
even though it didn't find anything.

It was unconfirmed, but I had no trouble confirming it.  It happened because
the wand worked on squares that were couldsee() but which (because they weren't
lit) you couldn't actually see.  The wand would detect the secret corridor and
then not display it because it was out of sight.

I fixed it to display the corridor, in sight or not (I could have had it not
detect anything, but the wand is fairly weak already.)
2002-01-26 02:26:28 +00:00
nethack.allison
e3e4c3b0cf more Makefile.nt
- Fix the tty build so it wasn't trying to link with GUI switches.
- Don't make graphical the default for the Makefile. It is for the
  IDE projects.
- Be explicit about compiler versions required/tested.
2002-01-25 23:07:52 +00:00
nethack.allison
adc35f0537 Makefile.nt bit (from Yitzhak) 2002-01-25 12:39:26 +00:00
nethack.allison
88219e4b60 Explicitly state the service pack of VC supported in Install.nt
Yitzhak discovered that there is a problem if you have the original
Visual Studio 6 with no service packs.
2002-01-25 08:59:35 +00:00
cohrs
82611f9cd8 inappropriate very difficult reading message
add missing set of parentheses around lense test in read_ability calculation
2002-01-25 08:08:33 +00:00
nethack.allison
3e33dadac2 Makefile.nt (from Yitzhak) 2002-01-25 07:30:39 +00:00
nethack.allison
7f7c1ff26b FIXES:
- added counting to the menu window. I changed the way it works in the TTY
port though  ("you hear the rumble of distant thunder..." :)  The count
applies to the currently selected item instead of being aplied to the item
to be selected  (in other words a12 instead of 12a). It works better this
way in the graphical port since there is a notion of current menu item.
 I also notes that the count is ignored for PICK_ONE menu - is this by
design?

- somebode mention that text is not scrollable by default - this is fixed.

- fixed player selection dialog to use initXXXX options

-----------------------
B1028 [reported] win32: popup window is too short
The text in the popup window's top line "What do you want to
call the ..." is cut off. Could the window be bigger, so you
can read the entire line?

Fixed.

---------------------
B1027 [reported] win32: select via traditional class char
In a shop (and perhaps elsewhere), I can autoselect a class of
items to drop: a for all types, b for coins, c for weapons, ...,
A for every item, B for blessed items, ... I like the new
possibilities, but I would like to be able to use the old way of
using ! for potions, ) for weapons, etc., as well.

Fixed.

---------------------
B1026 [reported] win32: setting multiple options

I want to set packorder and pickup_types. The first comes up
first, and I type in the order. Then comes the second, without
any hint what is asked of me. A little explanation here would
be appropriate, like "pick up what things automatically?" or
somesuch. When more than one option is set where extra input
is required, some explanation is useful.

Looking into. Apparently something  end_menu() call is ignored by nethackw.

---------------------
B1025 [reported] win32: menu navigation
I press O. Now, when I press "a" to turn on "autodig", not only
is the mark set at "a", but there also appears a dotted
rectangle around option "A" (capitalized). Shouldn't this
rectangle also appear at "a"? Pressing "a" repeatedly toggles
the checkmark, but the rectangle switches between "A" and "a".
My CAPS LOCK is not set. The same goes for B, C, D, ... N,
by the way. Pressing "A" works the other way around: the first
press checks "A" and "rectangles" "a", the next unchecks "A"
and rectangles "A" as well.

Fixed.

---------------------
B1024 [reported] win32: no text in final window
After I clicked away the last screen with information
(challenges, I believe it was), I got an empty text screen, as
big as my screen, without any content. It looked like the text
screens that appear on the right, only it was larger and had
only a large OK button over the full width of the window, and
no cancel button. Why this window?

Fixed. The program did not set window text for RIP window.

---------------------
B1010 [known issue] win32: cosmetic
When I get my list of spells, the columns aren't properly
aligned: if the spell name is longer, the rest of the line
shifts right.

Fixed. Fixed-pitch font is used for menu window.

---------------------
B1004 [reported] win32: numeric keyboard Del/.-key
The Del/.-key on my numeric keyboard doesn't make me rest a turn

Fixed. Added rest on Del.

---------------------
B1003 [reported] win32: focus
When the window has the focus, the window bar isn't highlighted.

This is by design. Menu and text widnows are popup and the main
window is disabled when they are up.
2002-01-25 07:19:21 +00:00
cohrs
f73a1879c9 landmines and boulders
Make pushing a boulder onto a landmine share code with the trap case,
resulting in pits, waking sleepers, et al.
Don't leave a boulder suspended over the new pit, fill it.
Make sure any remaining boulder is placed on top of the pile.
If player sets off landmine, monsters killed are credited to/blamed on player.
2002-01-25 06:38:42 +00:00
nethack.allison
7406ad3855 Windows Me and Windows XP. 2002-01-25 01:54:44 +00:00
nethack.allison
f1c50c30ec Windows Me and Windows XP. 2002-01-25 01:40:03 +00:00
nethack.rankin
e1427a07ab code sync 2002-01-25 00:06:00 +00:00
nethack.allison
f9fd221e5f Remove extraneous line from petmark.uu 2002-01-24 23:55:45 +00:00
nethack.allison
dea6099cae (from Steve VanDevender)
Not using FDECL to declare the prototype for dogmove.c:can_reach_food()
causes the Digital UNIX C compiler to throw a prototype mismatch error
when compiling dogmove.c.
2002-01-24 23:40:58 +00:00
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