nethack.rankin [Fri, 8 Feb 2002 04:14:03 +0000 (04:14 +0000)]
fix B3032 -- wand of speed monster id
Make wands of speed or slow monster known if their effect
on monsters is observed; likewise for speed boots. Also, avoid
giving odd "the bat is moving faster" when seeing a bat created
in gehennom and inaccurate "the monster is moving slower" when
a monster puts on speed boots.
nethack.allison [Thu, 7 Feb 2002 12:01:16 +0000 (12:01 +0000)]
This just brings the version number references in line.
An actual history blurb summarizing the past 3.3
release is still missing from guidebook and history.
nethack.allison [Thu, 7 Feb 2002 11:30:36 +0000 (11:30 +0000)]
display "default" in options list
Have the options list display the word "default" for some
of the window-port options when the preference hasn't been
set by the player.
nethack.allison [Thu, 7 Feb 2002 05:42:31 +0000 (05:42 +0000)]
(from <Someone>)
The patch that deals with tabs is attached. I also fixed bug when the
program won't quit if Quit option is selected in the player selection
dialog.
nethack.allison [Thu, 7 Feb 2002 03:23:55 +0000 (03:23 +0000)]
modifying 'O' command behavour
I was asked how a window-port controls which options are
set to SET_IN_FILE, DISP_IN_GAME, or SET_IN_GAME.
This provides a run-time way to change an option's SET_IN_FILE,
DISP_IN_GAME, or SET_IN_GAME status through code, rather
than clog up options.c with a lot of compile-time #ifdefs
for different ports to offer different default option settings.
Update the documentation to reflect this.
nethack.rankin [Wed, 6 Feb 2002 01:36:31 +0000 (01:36 +0000)]
options fixes
Several boolean options were mis-categorized and became
unsettable during play. Also, the eight_bit_tty option got
dropped into limbo. Fixing that revealed a typo which would
have broken compilation for MSDOS.
`eight_bit_tty' has been renamed `wc_eight_bit_input',
but its only use anywhere in the code is for output.
nethack.allison [Wed, 6 Feb 2002 00:15:47 +0000 (00:15 +0000)]
Fixes from <Someone>
- added support for new options
- fixed couple of typos in options.c
- added sunken edge around message window
- added capability to replace font in the font table (if we will want to
change font sizes dynamically later)
nethack.allison [Tue, 5 Feb 2002 19:04:35 +0000 (19:04 +0000)]
Fixes (from <Someone>)
- visual feedback after a prompt: append an empty line to the message
window when clear_nhwindow(WIN_MESSAGE) is called. Filter
out empty lines in the buffer except for the active slot.
- append ellipses to the status line text if the text is truncated
- get rid of message boxes at the end of the game (ignore empty lines in
raw_print as Yitzhak suggested)
nethack.allison [Tue, 5 Feb 2002 13:21:43 +0000 (13:21 +0000)]
from Yitzhak
Add absent prototypes to some core routines.
Also add some port function() to function(void) in some win32 routines.
Also updates the Borland C Makefile for win32.
nethack.allison [Mon, 4 Feb 2002 12:50:46 +0000 (12:50 +0000)]
wincap field updates
As Warwick suggested, instead of having fixed tile
sizes as options, allow specification of the size
explicitly.
Also, at Yitzhak's suggestion, provide a hook for
overriding the port's tile file name. That name,
and the contents of the file it points to, will
be window-port specific of course.
nethack.allison [Mon, 4 Feb 2002 10:38:20 +0000 (10:38 +0000)]
force tingling nose
<Someone> wrote:
>I also note that it's weird for your nose to stop tingling and your
>sense of smell to return to normal, if flags.beginner prevented your
>realising that your nose was tingling in the first place.
warwick [Mon, 4 Feb 2002 10:23:30 +0000 (10:23 +0000)]
Qt: Fix default dialog button
In Qt 3, default button is always set to something... it was set to "Cancel"
in this case - not a good thing when you are granted a wish :-(
cohrs [Mon, 4 Feb 2002 05:57:35 +0000 (05:57 +0000)]
tty: ^C while prompted re-displays last message
- attempt to determine if tty_wait_synch() is called during the ending
dialogs due to an interrupt, and not re-display the previous message
at the wrong time
- also, "msg_window display anomaly" fix was missing code to still treat ^P
properly while in a prompt
cohrs [Mon, 4 Feb 2002 05:00:41 +0000 (05:00 +0000)]
unseen monster messages
- watch messages if you can't see the watch now start "You hear"
- unseen spellcaster messages are shown as "Something", to remove
some silly message pairs.
- unseen spellcaster that casts at itself causes no message
- recalc vision before spoteffects messsages, to avoid invalid "It"
nethack.allison [Sun, 3 Feb 2002 17:51:54 +0000 (17:51 +0000)]
<email deleted>
The following fixes several bugs:
1) Mismatch between docs and game in definition of what '+' resolved in
favor of docs...
2) When game needs to be recovered a message box is shown. This is a very
deprecated fix. It pretty much answers just the conditions that require
this (a yn question to an erroneous winid), and is not useful for other
purposes.
3) The score file is written.
cohrs [Sun, 3 Feb 2002 07:46:05 +0000 (07:46 +0000)]
tty: msg_window display anomaly
If you interrupt nethack (^C) in tty windowport mode while a pompt is
displayed and and msg_window=true, it can display the full message history
at an unexpected time. Detect this and display only the topl, as expected.
nethack.allison [Sun, 3 Feb 2002 05:31:47 +0000 (05:31 +0000)]
Adjust window-port related option processing
to allow common parsing in the core, and direct access to the
results by the window port.
Notes:
o Adds a new field, wincap, to the window_procs
structure for setting bits related to the preference
features that the window port supports. This allows
run-time determination of whether a particular option
setting is applicable to the running window port. A
window-port is free to support as many, or as few,
of the available options as it wants. Ensure that
only the ones supported have their corresponding bit
set in window_proc.wincap. [see chart in
doc/window.doc for help with that.]
o The settings I stuck into wincap for each window
port are almost certainly not accurate, so each port
team should review them. You should only include
the ones that you will actually react to and make
adjustments for if the user changes that option.
Without the setting in wincap, the option won't even
show up in the 'O'ptions menu.
o preference_update() added to the window-port
interface, so that the window-port can be notified
if an option of interest (an option with its
corresponding bit set in wincap field) is
changed.
o provided a genl_preference_update() routine in
windows.c and used it for all the existing
window ports since they don't have a functional
one of their own yet.
o this messes around heavily with iflags and the options
arrays in options.c
o I hope I didn't break any port's existing code. I
tried not to. The Mac however, in particular, should
be looked at because it suffered a namespace collision
with what I was working on around fontname. It had
Mac specific font stuff in options.c. Please test
the Mac.
nethack.rankin [Sat, 2 Feb 2002 10:25:54 +0000 (10:25 +0000)]
samurai quest bit
From one of <Someone>'s ascension posts: the introductory message
when you enter the Samurai's quest is slightly odd if you can't see at
the time. This rewording acknowledges the difference between being
blind or sighted, but it is still a bit odd to able to know which flag
is flying when unable to actually see it.
arromdee [Sat, 2 Feb 2002 07:18:52 +0000 (07:18 +0000)]
blessed +2 fireproof speed boots
The inability to wish for a blessed +2 fireproof speed boots really was a bug.
Prefixes are checked for inside a loop which should allow them to be in any
order; for some reason +nnn and empty were outside that loop.
Also adding the secret door detection fix to betabugs 3.3.0. (Is it safe to
hand-modify betabugs 3.3.2?)
cohrs [Sat, 2 Feb 2002 06:43:53 +0000 (06:43 +0000)]
teleporting monster while swallowed
if player teleports a monster while swallowed on a noteleport level, the
player should not teleport along with the monster
cohrs [Sat, 2 Feb 2002 02:58:07 +0000 (02:58 +0000)]
SPLEVTYPE debug mode environment variable
SPLEVTYPE can have a value like "minetn-3,minend-2,soko2-2" and allows
someone in debug mode to select specific instances of random levels to use
in a test game. Invalid values found in SPLEVTYPE are silently ignored.
nethack.allison [Fri, 1 Feb 2002 13:01:53 +0000 (13:01 +0000)]
At the request of <Someone>:
I'm surprised that you credit me with the ninja yumi-ya thing as a
"patch" in README; I didn't submit any code for it, it's trivial, and
it's vanishingly unlikely ever to come into play :-) If I'm to be
credited with anything on that list, I'd have thought it'd be the
no starting pet option.
nethack.allison [Fri, 1 Feb 2002 06:43:22 +0000 (06:43 +0000)]
dead key fix
Apparently, " is part of an accented character in US(international) keyboard
layout (additional character specific to the language of an origin - for
example, left and right double quotation marks). The code did not handle it
too well since it maps to 2 ASCII characters instead of one (one of them is
so called "dead" character). We can ignore the dead character as a
workaround for this problem. The patch is attached.
kmhugo [Fri, 1 Feb 2002 05:44:00 +0000 (05:44 +0000)]
Gnomish Mines tuning
Give names to remaining town levels.
Change elements in College Town that don't follow theme.
Remove isolated niche and helm of brilliance from end #3.
nethack.allison [Fri, 1 Feb 2002 00:36:54 +0000 (00:36 +0000)]
fix crash during Drop unpaid
The patch is attached. Array bounds went unchecked in
the menu page operations (, \ ~) This resulted in
memory corruption.
The actual crash depends on your luck actually. It will
only crash if heap headers are corrupted, otherwise it
can go unnoticed. When you do "Du," the list page size
is 18 (on my screen) with only 2 items in the menu. The
program assigned count of -1 to 18 items in the array
of 2. Ka-boom. I put bounds checking code in several
places. The window size does not have anything to do
with it.
cohrs [Thu, 31 Jan 2002 03:21:39 +0000 (03:21 +0000)]
tty pet hiliting may turn off on color changes
check to turn on hilite must come after check to change color, since
changing color uses term_end_color which may turn off inverse video too
cohrs [Tue, 29 Jan 2002 08:03:24 +0000 (08:03 +0000)]
various Guidebook updates
+ attributes may exceed 18 for non-humans
+ update spell casting paragraph to loosely describe 3.3 style spell casting
+ correct description of the output of the '+' command
+ note default value for 'mail' option
cohrs [Tue, 29 Jan 2002 06:35:17 +0000 (06:35 +0000)]
eggs and other breakables break falling down stairs
<Someone> questioned why eggs and potions don't break when falling downstairs.
For that matter, other breakables should as well.
nethack.allison [Mon, 28 Jan 2002 12:58:45 +0000 (12:58 +0000)]
disclose refinements:
- allow spaces between the different possibilities
- add a missing null at the end of the list of prefixes to prevent index()
from going crazy
- slight re-wording of the Guidebook
cohrs [Sun, 27 Jan 2002 23:45:47 +0000 (23:45 +0000)]
autodig chattiness
The autodig code still requires lots of interaction, because of all the
digging messages. Make these messages behave more like boulder pushing
messages, where they only display if the previous move wasn't a push.
nethack.allison [Sun, 27 Jan 2002 23:28:02 +0000 (23:28 +0000)]
Fixes:
- B1026 [confirmed] win32: setting multiple options
- bugfix: menu: set focus to the item and make it visible when it is
selected with accelerator key.
- increased menu font size by 1 point
- layout the main window on WM_MOVE message so the menu windows stays with
the main window (it was not changing the location before)
- got rid of WinCE specific define (ARM)
- handle all keyboard input via WM_KEYDOWN instead WM_CHAR
Notes:
That overrides Yitzhak's mhmenu patch - I don't like the menu prompt on the
title bar since it can be null and in most cases it is. It looks much better
as a header column in the list and is displayed only if present.
I moved ARM-related (processor) defines to wceconf.h You cannot undef ARM
before windows.h is processed - ARM version won't compile.
.rc files are generated by IDE - you cannot edit them directly or your
changes will be gone next time the file is saved. If anything needs to be
added to winhack.rc file manually it has to be marked by the following
defines or via menu option View->Resource Includes:
#define APSTUDIO_READONLY_SYMBOLS
...
#undef APSTUDIO_READONLY_SYMBOLS
nethack.allison [Sun, 27 Jan 2002 21:37:31 +0000 (21:37 +0000)]
win32gui patches (from Yitzhak)
[...]
One of them deals with the patch you just sent, that changes the name but
does so more extensively, particularly, also in the Save dialog in
mhmain.c. Another is one of the changes to winhack.rc to make it compile
under Borland.
This also (beyond patches I sent): fixes no Options prompt bug, and fixes
up the menu bar (which I broke in one of my patches).