]> granicus.if.org Git - nethack/log
nethack
22 years agoRollback NAME_MAX workarounds as suggested.
warwick [Tue, 23 Jul 2002 06:07:21 +0000 (06:07 +0000)]
Rollback NAME_MAX workarounds as suggested.

22 years agodjgpp build was also broken
nethack.allison [Tue, 23 Jul 2002 05:33:00 +0000 (05:33 +0000)]
djgpp build was also broken

22 years agocredit updates
nethack.allison [Tue, 23 Jul 2002 05:10:37 +0000 (05:10 +0000)]
credit updates

22 years agomore Windows CE
nethack.allison [Tue, 23 Jul 2002 04:52:48 +0000 (04:52 +0000)]
more Windows CE

22 years agobuild fix for files.c
nethack.allison [Tue, 23 Jul 2002 04:51:28 +0000 (04:51 +0000)]
build fix for files.c

Warwick's plname files.c addition broke the
build on both win32 and CE because NAMES_MAX
wasn't defined.

In win32 it was defined in limits.h, but only
when _POSIX_ was defined.

In CE it just didn't exist in any of the
header files.  Since it was also complaining
about strdup(), I #ifdef'd Warwick's code out
under CE.

22 years agoEnclose savefile format change by STORE_PLNAME_IN_FILE macro.
warwick [Mon, 22 Jul 2002 09:13:04 +0000 (09:13 +0000)]
Enclose savefile format change by STORE_PLNAME_IN_FILE macro.

22 years agoSome non-enabled perminv code in Qt windowport. (missed in previous patch)
warwick [Mon, 22 Jul 2002 09:10:13 +0000 (09:10 +0000)]
Some non-enabled perminv code in Qt windowport. (missed in previous patch)

22 years agoStore plname in save files (and restore it).
warwick [Mon, 22 Jul 2002 06:25:52 +0000 (06:25 +0000)]
Store plname in save files (and restore it).
Move get_saved_games() functionality to files.c
Use moved get_saved_games() functionality in Qt windowport.
[also some non-enabled perminv code in Qt windowport]

22 years agoWindows CE port addition
nethack.allison [Mon, 22 Jul 2002 03:27:01 +0000 (03:27 +0000)]
Windows CE port addition

22 years agoWindows CE port addition
nethack.allison [Mon, 22 Jul 2002 03:20:52 +0000 (03:20 +0000)]
Windows CE port addition

22 years agoanother follow-up to fname_decode() routine
nethack.allison [Sun, 21 Jul 2002 16:58:12 +0000 (16:58 +0000)]
another follow-up to fname_decode() routine

22 years agoremove unnecessary variable
nethack.allison [Sun, 21 Jul 2002 16:49:19 +0000 (16:49 +0000)]
remove unnecessary variable

follow-up to fname_decode() routine

22 years agobuild fix
nethack.rankin [Sun, 21 Jul 2002 10:11:32 +0000 (10:11 +0000)]
build fix

22 years agoWIN32: file naming
nethack.allison [Sun, 21 Jul 2002 04:07:32 +0000 (04:07 +0000)]
WIN32: file naming
Allow single character variations in player names
to remain unique in file names by encoding rather
than substituting.
"plnam one", "plnam_one", and "plnam~one" at the
"Who are you?" prompt get unique filenames after this patch.

22 years agoprevent strange crash with some player names
nethack.allison [Sun, 21 Jul 2002 03:53:13 +0000 (03:53 +0000)]
prevent strange crash with some player names

22 years agobear trap wizard wishing
arromdee [Sat, 20 Jul 2002 06:45:48 +0000 (06:45 +0000)]
bear trap wizard wishing

22 years agoMore untrap message clean-up
nethack.allison [Sat, 20 Jul 2002 02:07:09 +0000 (02:07 +0000)]
More untrap message clean-up

22 years ago(From <Someone>)
nethack.allison [Fri, 19 Jul 2002 13:42:24 +0000 (13:42 +0000)]
(From <Someone>)
> It's probably best to empty
> mswin_update_inventory() in win\win32\. If I
> remember correctly there is some code in there now
> which probably behaves badly if perm_invent is
> switched on

22 years agopolyself typo
nethack.rankin [Fri, 19 Jul 2002 01:45:26 +0000 (01:45 +0000)]
polyself typo

22 years agoB01005 - fasting by monks
nethack.rankin [Wed, 17 Jul 2002 23:31:12 +0000 (23:31 +0000)]
B01005 - fasting by monks

     Implement a suggestion by <Someone> that turns spent in
"hungry" state exercise wisdom for monk characters; also make
turns spent in "satiated" state abuse it instead.

22 years agoremove sparks lighting oil
nethack.allison [Wed, 17 Jul 2002 23:26:48 +0000 (23:26 +0000)]
remove sparks lighting oil

for now at least, until there is more time to look into it.

<email deleted>
> Yet more nitpicking about potions of oil being lit by sparks from axed
> statues, I'm afraid.
>
> Konosja's potions of oil catch light!
> "That will cost you 66 zorkmids (Yendorian Fuel Tax)."
> "That's in addition to the cost of Konosja's potions of oil themselves, of
> course."
> You snuff the lit potion.
>
> a) why is the Fuel Tax on (in this case) six potions the same as on one?
>
> b) if you a)pply-light a potion, it's just "in addition to the cost of
>    the potion". Is Yname2() the right name-function for catch_lit() to
>    be using? It's odd for Konosja to be talking about herself in the
>    third person.
>
> c) Grammar on the snuffing message is wrong for multiple potions.

22 years agoB01003 - showrace display
nethack.rankin [Wed, 17 Jul 2002 23:26:36 +0000 (23:26 +0000)]
B01003 - showrace display

     Enabling the showrace option displays a nonhuman hero in
white rather than in corresponding monster type's usual color.

22 years agomore fire trap vs golem
nethack.rankin [Mon, 15 Jul 2002 13:59:42 +0000 (13:59 +0000)]
more fire trap vs golem

22 years agolev_comp yacc output
nethack.rankin [Mon, 15 Jul 2002 07:31:14 +0000 (07:31 +0000)]
lev_comp yacc output

22 years agominetown guards outside the town proper
cohrs [Mon, 15 Jul 2002 04:17:13 +0000 (04:17 +0000)]
minetown guards outside the town proper
Pat forwarded a message from the newsgroup in March that the town guards
enforce rules even outside the town proper.  Fix: On room-based town levels,
check if the location is in a room containing subrooms (roomno will often
have a subroom id instead).  On the other levels (e.g. minetn-5), there are
no subrooms, so the whole level is fair game.  Currently, this is valid.
If fancier towns are added in the future, more flags or use of regions may
be required to tell where the town border actually is.  These checks are done
in a new in_town function.

22 years agoB04010 - paper golems and fire traps
cohrs [Sun, 14 Jul 2002 22:10:33 +0000 (22:10 +0000)]
B04010 - paper golems and fire traps
Paper golems take 100% damage in a fire trap.  Straw is very flammable
unless tightly packed, but straw golems have a lot of surface area, so give
them 50% damage.

22 years agocontainers and objects in special level descriptions
cohrs [Sun, 14 Jul 2002 20:17:45 +0000 (20:17 +0000)]
containers and objects in special level descriptions
On mazelike levels, containers had to be listed before their objects.  But,
for roomfilled levels, containers had to be listed _after_ the objects.  All
our current levels that use containers with objects are mazelike, so I
changed the room behavior, updating the comment in lev_comp.y to match.
Other items/monsters are still processed in reverse on roomfilled special
levels, but I think this is OK.

22 years agowin32gui: follow-up
nethack.allison [Sun, 14 Jul 2002 19:56:49 +0000 (19:56 +0000)]
win32gui: follow-up

22 years agowin32gui: -s and -? on the command line
nethack.allison [Sun, 14 Jul 2002 19:50:25 +0000 (19:50 +0000)]
win32gui: -s and -? on the command line
Since -s doesn't function properly under the WIN32
graphical interface as yet, disable it altogether.

Also clean up nhusage() so that it does work with
the WIN32 graphical interface.

22 years agoB04009 ftn msg when blind/!invis and gain see invis.
nethack.allison [Sun, 14 Jul 2002 18:29:34 +0000 (18:29 +0000)]
B04009 ftn msg when blind/!invis and gain see invis.

<Someone> writes:
Why do you "feel transparent" when you gain see invisible from a
fountain when blind and _not_ invisible? Transparency usually refers
to _being_ invisible.

Another try.

22 years agoB04009 ftn msg when blind/!invis and gain see invis.
nethack.allison [Sun, 14 Jul 2002 18:04:59 +0000 (18:04 +0000)]
B04009 ftn msg when blind/!invis and gain see invis.

<Someone> writes:
Why do you "feel transparent" when you gain see invisible from a
fountain when blind and _not_ invisible? Transparency usually refers
to _being_ invisible.

Good point. I think this may have been what was intended, but it's
been like this for quite a while.

22 years agoB04008 Minetown fountain warnings prevent fountain gem/gold discovery
nethack.allison [Sun, 14 Jul 2002 17:19:40 +0000 (17:19 +0000)]
B04008 Minetown fountain warnings prevent fountain gem/gold discovery

<Someone> writes:
I can accept that losing gold into a fountain recharges it to make it
possible to find a gem in it in future (however weird that is). What
_does_ seem wrong is that receiving a warning about a Minetown
fountain prevents finding gems and gold there.

22 years agodo_look at warning co-located with boulder
nethack.allison [Sun, 14 Jul 2002 15:59:04 +0000 (15:59 +0000)]
do_look at warning co-located with boulder

This does not fix a reported bug where you
can't attack a hidden creature that is
co-located with a boulder, but it might
assist the player in understanding what is
going on.

22 years agomelon bit and comment
nethack.allison [Sun, 14 Jul 2002 13:37:48 +0000 (13:37 +0000)]
melon bit and comment

Melons should break when thrown.
Add objects.c comment about "gray stones"

22 years agoslight cockatrice egg msg change
nethack.allison [Sun, 14 Jul 2002 13:01:04 +0000 (13:01 +0000)]
slight cockatrice egg msg change
Move the "Splat" part of the message.

22 years agoB04005 - leash and uncontrolled teleportation
cohrs [Sun, 14 Jul 2002 03:06:19 +0000 (03:06 +0000)]
B04005 - leash and uncontrolled teleportation
<Someone> reported that after an uncontrolled teleport due to eating a
leprechaun, his leashed pet was still leashed until he took one more step.
The usual approach which included disallowing the teleport seemed wrong in
this case, so I put in an abbreviated version that does its checks but does
not disallow the teleport.  The pet teleports with you in the same cases as
other teleports, but when it doesn't, the leash snaps loose.

22 years agodwarvish indecision
cohrs [Sun, 14 Jul 2002 02:48:27 +0000 (02:48 +0000)]
dwarvish indecision
<Someone> (and later <Someone>) reported along with several other
things of a dwarf that stood in place and switched between his pick-axe and
broadsword on successive turns.  Fixed by bringing the logic in the two
cases in line.  The code now prefers to leave the hostile dwarf with a weapon.

22 years agoR888 - panic while quaffing a potion of levitation
cohrs [Sat, 13 Jul 2002 23:06:22 +0000 (23:06 +0000)]
R888 - panic while quaffing a potion of levitation
Now that the in_use flag is set for potions being quaffed, use the in_use
flag in general in destroy_item to avoid destroying the in use object, on
the assumption that the caller will call useup when finished.  There are a
few places that set then unset in_use, but these don't currently result in
a call to destroy_item.  The current_wand hack was not removed, since its
logic appears to allow destroy_item to still destroy the item.

22 years agoB04004 - naming polymorph potions
cohrs [Sat, 13 Jul 2002 22:27:01 +0000 (22:27 +0000)]
B04004 - naming polymorph potions
Provide a chance for the player to name a polymorph potion if you dip
something into it and nothing happens.
Also fix several places in dipping and drinking potions where the HUP cheat
would allow you to use the potion a 2nd time, made more important since
the polymorph sequence includes what is currently a unique message.

22 years agoplug fountain & throne SIGHUP cheat
nethack.rankin [Sat, 13 Jul 2002 13:11:51 +0000 (13:11 +0000)]
plug fountain & throne SIGHUP cheat

     When using a fountain or throne, getting a --More-- prompt
usually means that you're about to be told that it has just dried
up or vanished.  But since that topology change didn't occur until
after the message, players could cheat by forcing SIGHUP instead
of answering the prompt; the resulting save file would retain the
original topology.  So change the dungeon prior to telling the user
about it.

     The `fixes' entry possibly belongs in the tty-specific category
but since the change is to core code I put it in the general section.

22 years agovms Makefile update
nethack.rankin [Sat, 13 Jul 2002 12:44:55 +0000 (12:44 +0000)]
vms Makefile update

22 years agoB4003 - exercising spell skills
nethack.rankin [Sat, 13 Jul 2002 12:39:10 +0000 (12:39 +0000)]
B4003 - exercising spell skills

     The spellcasting code stopped counting a spell class's skill
exercise once that reached expert, so the only way that it could
end up being flagged as having reached maximum in the #enhance
feedback would be if it had already received enough exercise to
reach the hypothetical level beyond expert while it was still at
skilled or less.

     It also didn't count the exercise if you were restricted in
the spell class, but that wasn't necessary because becoming
unrestricted--which I don't think is even possible for spells at
present--resets the counter back to 0 to discard any exercise
achieved while ineligible.

22 years agoB04002 - blessed gain level vs XL 30
nethack.rankin [Sat, 13 Jul 2002 12:19:09 +0000 (12:19 +0000)]
B04002 - blessed gain level vs XL 30

     Fix the problem [reported in the newsgroup and forwarded by <Someone>]
of blessed potions of gain level having the possibility of reducing
your experience points if you were already level 30.  The random XP
value that averages "half way to next level" could be less than your
current experience if you had gotten to level 30 via such a blessed
potion or had drunk at least one of same since reaching that level.
This didn't really make any difference to game play since you weren't
losing any levels, HP, mana, or score, but it was visible to users who
enable the `showexp' option.

22 years agoUpdate inventory with hellucination on/off, since it may display
warwick [Fri, 12 Jul 2002 02:10:51 +0000 (02:10 +0000)]
Update inventory with hellucination on/off, since it may display
hallucinated icons.

22 years agoR919 - applying lances
cohrs [Thu, 11 Jul 2002 05:16:27 +0000 (05:16 +0000)]
R919 - applying lances
Fixes 2 bugs:
1) an impossible() could occur if you applied a lance against a long worm
because the code uses thitmonst to do the hitting, but didn't set bhitpos,
which is required before calling thitmonst.
Add the missing assignment.
2) applying a lance would never mark a knight as a caitiff.  Added a new
check_caitiff function and called it from the 2 existing checks and in
the lance code.

22 years agomodify #untrap prompting further
nethack.allison [Wed, 10 Jul 2002 12:32:03 +0000 (12:32 +0000)]
modify #untrap prompting further

> The intention is, I believe, to cater for the situation where you, a
> chest, and a dungeon-trap are all on the same square; previously
> (C340-71), you wouldn't have been able to check the chest for traps
> because an #untrap in direction '.' would always have tried to disarm
> the dungeon trap. However, since you can't trap-check containers on
> adjacent squares, it'd wouldn't hurt if the question was dispensed
> with when you specify a direction that isn't your square.
>
> (Note that "you cannot deal with traps while trapped!", so there's
> still several situations when you can't trap-check a chest on a
> trap-square, even though you can loot it, until you've untrapped
> yourself; is this really consistent? Should the if(u.utrap) check
> be moved to the "case y:" branch of the switch?)

22 years agochain summoning
arromdee [Tue, 9 Jul 2002 07:10:21 +0000 (07:10 +0000)]
chain summoning
This adds a further throttle to chain summoning.  Monsters can only summon
spellcasting nasties if the nasties are lower level than the summoner, which
makes infinite chains impossible (as long as the player figures out which
monster to kill first).

22 years agokicking and killing an unseen monster
cohrs [Tue, 9 Jul 2002 04:21:58 +0000 (04:21 +0000)]
kicking and killing an unseen monster
<Someone> reported that kicking [unlike hitting] an unseen monster
to death would leave an "I" on the screen.  This was due to a missing
DEADMONSTER check.  I also noticed that code to avoid leaving an extra "I"
behind when a monster jumps of of the way was only half right, resulting in
an extra "I" anyway.

22 years agoNO_TERMS bug
cohrs [Tue, 9 Jul 2002 04:09:09 +0000 (04:09 +0000)]
NO_TERMS bug
From a bug report, a missing check for defined(NO_TERMS) in pcsys.c
would result in a link time error.

22 years agochange GOLD_CLASS to COIN_CLASS
nethack.allison [Mon, 8 Jul 2002 23:25:53 +0000 (23:25 +0000)]
change GOLD_CLASS to COIN_CLASS

22 years agoriding speed
cohrs [Mon, 8 Jul 2002 14:02:27 +0000 (14:02 +0000)]
riding speed
While riding, your speed was calculated using the steeds speed only when
moving multi locations.  So, if you were walking step by step, it would use
your speed instead.  Changed this to use the steed's speed any time actual
movement occurs.

22 years agoR853 - Items inside statues lost
cohrs [Mon, 8 Jul 2002 00:15:27 +0000 (00:15 +0000)]
R853 - Items inside statues lost
If you cast stone to flesh on a statue on a location containing a monster,
the statue would be turned into a corpse and the contents lost.  This
didn't seem to be appropriate for the spell.  Now the contents spill out.

22 years agocancellation, polymorphed and unchanging
cohrs [Sun, 7 Jul 2002 23:25:43 +0000 (23:25 +0000)]
cancellation, polymorphed and unchanging
<Someone> reported that a wand of cancellation would ignore Unchanging,
noting the case of cancelling yourself while polymorphed into a stone golem.
He thought the wand should win, killing the player.  I felt otherwise,
since the case he specified passes the flag allow_cancel_kill == FALSE.

22 years agoB01021 - Samurai quest doors
cohrs [Sun, 7 Jul 2002 20:57:13 +0000 (20:57 +0000)]
B01021 - Samurai quest doors
<Someone> wondered why there were no DOOR:nodoor specs for several doors in the
Samurai quest.  I wasn't positive, but it seemed like these should have
been DOOR:closed, which is what I've added.

22 years agoB01016 - misplaced "you steal" message after being blasted by an artifact
cohrs [Sun, 7 Jul 2002 20:22:57 +0000 (20:22 +0000)]
B01016 - misplaced "you steal" message after being blasted by an artifact
I saw no straight-forward way to insert the message earlier in the
sequence, so...  I reasoned that you might not yet have a good grasp and
not be able to continue holding the object when reverting form.  So, I made
this into a drop case and made the drop message a rare past tense message.
Past tense is still OK for the other drop cases.
While testing this, I noticed you'd keep stealing even after reverting
form.  Added code to stop this.  Finally, there was a missing MON_NOWEP
call in the stealing code, added it.

22 years agopicking up gold
nethack.allison [Sun, 7 Jul 2002 19:10:17 +0000 (19:10 +0000)]
picking up gold

> > On Saturday, 6 Jul 2002, <Someone> wrote:
> > What's the rationale behind using "money" for what used to be
> > "gold" (as in "The hill orc picks up some money" or "You notice
> > you have no money!")? Has the zorkmid been devalued?
[...]
> At least let *leprechauns* pick up gold. Unlike orcs, they're not the
> kind to pick up just "money".

22 years agoeating conduct followup
cohrs [Sun, 7 Jul 2002 15:25:23 +0000 (15:25 +0000)]
eating conduct followup
lost the non-EGG case when removing the unnecessary LEATHER, et al, checks.

22 years agospecial level alignments
cohrs [Sun, 7 Jul 2002 07:18:05 +0000 (07:18 +0000)]
special level alignments
From the newsgroup a while back - special levels w/o a specific alignment
should inherit their alignment from the dungeon.  Some places explicitly
checked the dungeon if the level alignment wasn't set, at least one did not.

22 years agorotten food and veggie conduct
cohrs [Sun, 7 Jul 2002 05:07:53 +0000 (05:07 +0000)]
rotten food and veggie conduct
<Someone> reported (in April) that eating cursed tripe, for example, did
not violate vegetarian conduct.  This patch moves the various conduct
checks into common code that is executed before the rotten state of food is
determined.

22 years agoavoid some glitches with a handheld compiler I was trying out
nethack.allison [Sat, 6 Jul 2002 16:26:35 +0000 (16:26 +0000)]
avoid some glitches with a handheld compiler I was trying out
src\muse.c(904) : error C2143: syntax error : missing ';' before '__try'
src\muse.c(904) : warning C4091: ' ' : ignored on left of 'int ' when no variable is declared
src\muse.c(904) : error C2059: syntax error : '='
src\muse.c(916) : error C2059: syntax error : '__try'

22 years agotravel command missing from help 'g'
nethack.allison [Sat, 6 Jul 2002 14:00:05 +0000 (14:00 +0000)]
travel command missing from help 'g'

<email deleted>
> In the help listing one obtains from '?g', the "travel" option does
> not seem to be listed.

lootabc, and showrace were missing too.

22 years agomessage structure bit
nethack.allison [Sat, 6 Jul 2002 13:28:46 +0000 (13:28 +0000)]
message structure bit

22 years agoB01014 - chop through
cohrs [Fri, 5 Jul 2002 17:37:31 +0000 (17:37 +0000)]
B01014 - chop through
The rest of B01014 was fixed by my fix for B03003.  This fix just
changes the verb as suggested.

22 years agomessages when destroying a chest
cohrs [Fri, 5 Jul 2002 15:58:16 +0000 (15:58 +0000)]
messages when destroying a chest
Remove the special case of "the" vs "a" in chest_shatter_msg(), just
use an/An as appropriate.

22 years agovalidate_prefix_locations follow-up2
nethack.allison [Fri, 5 Jul 2002 15:38:27 +0000 (15:38 +0000)]
validate_prefix_locations follow-up2

translate errno in the log file too
check for standard C

22 years agodocumentation bit
cohrs [Fri, 5 Jul 2002 15:37:47 +0000 (15:37 +0000)]
documentation bit
document which strings correspond to which capacity levels
Suggestion from <Someone>.

22 years agorestore autodig behavior
cohrs [Fri, 5 Jul 2002 15:30:51 +0000 (15:30 +0000)]
restore autodig behavior
autodig messages were broken due to a change in the dig_typ interface which
shifted all the values by 1, but not all callers of dig_typ got changed.

22 years agovalidate_prefix_locations follow-up
nethack.allison [Fri, 5 Jul 2002 14:46:31 +0000 (14:46 +0000)]
validate_prefix_locations follow-up

translate errno in the log file too.

22 years agovalidate_prefix_locations
nethack.allison [Fri, 5 Jul 2002 14:42:49 +0000 (14:42 +0000)]
validate_prefix_locations

Add the actual value of the prefix, and the error returned by the system
to the paniclog file entry.

22 years agoNOCWD_ASSUMPTIONS under MSDOS followup
nethack.allison [Fri, 5 Jul 2002 13:22:28 +0000 (13:22 +0000)]
NOCWD_ASSUMPTIONS under MSDOS followup

22 years agoknights and covetous monsters
cohrs [Thu, 4 Jul 2002 19:13:10 +0000 (19:13 +0000)]
knights and covetous monsters
Implement Pat's suggestion of setting the mavenge flag when a covetous
monster flees, since they may subsequently teleport back and attack even
if mflee is set.

22 years agoB03002 followup
cohrs [Thu, 4 Jul 2002 18:27:22 +0000 (18:27 +0000)]
B03002 followup
copied over the wrong version of fountain.c

22 years agoB03002 - missing fountain messages
cohrs [Thu, 4 Jul 2002 18:25:26 +0000 (18:25 +0000)]
B03002 - missing fountain messages
<Someone> reported that dowaternymph and dowaterdemon did not print a message
when their G_GONE checks failed.  Now they do.  I wasn't feeling
imaginative, so the the dowaterdemon message is the same as for no snakes.

22 years agoR972 - rust monster eating gold
cohrs [Thu, 4 Jul 2002 17:47:18 +0000 (17:47 +0000)]
R972 - rust monster eating gold
When !GOLDOBJ, player polymorphed to a rust monster that attempted to eat
gold in the inventory would fail to eat it, but the gold would be consumed
anyway.  Under GOLDOBJ, a later check would work around the invalid prompt.

22 years agoB03001 - trapdoors while blind and levitating
cohrs [Thu, 4 Jul 2002 17:29:42 +0000 (17:29 +0000)]
B03001 - trapdoors while blind and levitating
The seetrap() was done for trapdoors & holes independent of whether a
message was printed.  Move the seetrap call into fall_through where
the message logic lives (Sokoban holes always activate).

22 years agoR926 - polymorphed player does not explode at thin air
cohrs [Thu, 4 Jul 2002 06:36:37 +0000 (06:36 +0000)]
R926 - polymorphed player does not explode at thin air
Reported that player polymorphed into an exploding monster does not explode
when attacking thin air.  Also noticed that if player is Unchanging, they
wouldn't die after exploding in the existing code.  Set u.mh = -1 to ensure
they won't still be around after exploding.

22 years agoTurn "_" into " ", since "Brave_Sir_Robin" looks yucky.
warwick [Thu, 4 Jul 2002 06:26:15 +0000 (06:26 +0000)]
Turn "_" into " ", since "Brave_Sir_Robin" looks yucky.
Proper fix is to store name in file.

22 years agoLinux and SVR4 don'thave 14-character filename limits.
warwick [Thu, 4 Jul 2002 06:23:42 +0000 (06:23 +0000)]
Linux and SVR4 don'thave 14-character filename limits.
Re-factor the #defines while I'm at it.

22 years agocursed daggers thrown by monsters can go thru closed doors
cohrs [Wed, 3 Jul 2002 06:35:35 +0000 (06:35 +0000)]
cursed daggers thrown by monsters can go thru closed doors
based on a bugfix forwarded by <Someone>, check for closed doors and drop
the missle before it.  I re-arranged the pre checks a bit so m_throw no
longer needs to trust the caller to ensure everything is OK beforehand.

22 years agoB01012 involuntary dismount crash
nethack.allison [Wed, 3 Jul 2002 02:22:50 +0000 (02:22 +0000)]
B01012 involuntary dismount crash

Nethack crashes when you are riding a flying monster over a
pool/moat and some engulfing monster plucks you off your saddle.
After falling into the water you'll get the normal message
sequence (sink like rock ... phew, that was close; you also get
chance to teleport if you can).  After the last message the game
will crash with a segmentation fault.
- reproducible; null pointer dereference in swallowed()

The crash results because dismount_steed() calls float_down(), which
calls drown(), which calls teleds(), which clears u.ustuck.  So when
gulpmu calls swallowed after dismount_steed(), this line attempts to
derefernce a null pointer:
    swallower = monsndx(u.ustuck->data);

This patch bypasses the float_down() in dismount steed() altogether.
That routine is meant to return the hero to the floor, and that
isn't appropriate if a purple worm just plucked you off the steed
anyway.

While this fixes the crash, a problem still exists. The
way swallowing works, the swallowing monster's location
switches to that of the hero.  Since that location is
over water, the purple worm ends up drowning almost
immediately after you are swallowed, while you are
swallowed.  The purple worm's death is not revealed
to you since the "The purple worm drowns." message is
conditional. This patch also adds a message when
the purple worm dies, but should this guaranteed
drowing take place?

22 years agoB01001
nethack.allison [Wed, 3 Jul 2002 00:11:22 +0000 (00:11 +0000)]
B01001
<Someone> reported this bug (B01001):
"Tower of flame" as cause of death _still_ lacks "killed by"
prefix.

22 years agodropping gold on an altar
cohrs [Tue, 2 Jul 2002 05:55:23 +0000 (05:55 +0000)]
dropping gold on an altar
<Someone> reported that dropping gold on an altar prints no message.
As a side effect, gnostic conduct was never affected, which seemed odd;
dropping other known objects would still affect your gnostic conduct.
While fixing this, I noticed a GOLDOBJ-related bug when dropping gold while
levitating.

22 years agoR975 - message for charging for items lost in a cursed magic bag
cohrs [Tue, 2 Jul 2002 04:14:59 +0000 (04:14 +0000)]
R975 - message for charging for items lost in a cursed magic bag
The loss message was not always printed due to testing the wrong variable
before printing the message.

22 years agocomment tidbit
nethack.rankin [Tue, 2 Jul 2002 02:47:28 +0000 (02:47 +0000)]
comment tidbit

22 years agogrammar of food warnings
nethack.rankin [Tue, 2 Jul 2002 02:39:27 +0000 (02:39 +0000)]
grammar of food warnings

Change "The corpses smell like it could be tainted! Eat it anyway?"
to be "The corpses smell like they could be tainted! Eat one anyway?"
when eating one of multiple stacked food objects.

22 years agopaniclog: log correct string
cohrs [Mon, 1 Jul 2002 23:06:01 +0000 (23:06 +0000)]
paniclog: log correct string

22 years agoearly directory validation follow-up
nethack.allison [Mon, 1 Jul 2002 22:53:30 +0000 (22:53 +0000)]
early directory validation follow-up
Don't test file creation on the read-only areas: dataprefix, configprefix

22 years agoearly directory validation
nethack.allison [Mon, 1 Jul 2002 22:42:57 +0000 (22:42 +0000)]
early directory validation
Allow early prefix directory validation to help prevent
failed games and lost save files due to incorrect config
file settings.

22 years agoClean up win32 emergency exit handling a little
nethack.allison [Mon, 1 Jul 2002 12:32:57 +0000 (12:32 +0000)]
Clean up win32 emergency exit handling a little

22 years agoIt was possible to terminate the win32 ports late in the user
nethack.allison [Mon, 1 Jul 2002 12:28:14 +0000 (12:28 +0000)]
It was possible to terminate the win32 ports late in the user
save process, after the save file had already been written by
forcing execution of an interrupt handler at one of the
termination prompts.  This resulted in "You were not healthy
enough to survive restoration" and worse.

This clears program_state.something_worth_saving immediately
after the save has been completed.

22 years agoaxing boulder/statue follow-up
nethack.allison [Mon, 1 Jul 2002 06:41:08 +0000 (06:41 +0000)]
axing boulder/statue follow-up
<email deleted>
Sent: Sunday, June 30, 2002 6:30 PM
Subject: Sparks from statue-axing
> First, the message given when your axe-handle vibrates is a little
> ambiguous; I'd be explicit and include the name of obj.
>
> More seriously, potions of oil catching light from the sparks are a) a
> great idea, but b) slightly broken. They catch light fine, but
> snuffing them produces a "del_light_source: not found"
> impossible(). (This probably means the same applies to being lit by
> fire_damage(), but that's rare enough this hasn't been caught before.)
>
> (Also, a)pplying a potion of oil to light one identifies its object
> type, so lighting one by this means probably ought to as well. And
> oughtn't it to be charged for if you don't own it, as light_cocktail()
> does?)

22 years agoMake problem of zero-sized .moc file less likely.
warwick [Mon, 1 Jul 2002 05:35:02 +0000 (05:35 +0000)]
Make problem of zero-sized .moc file less likely.
(<Someone> reported problem that was obscured by an empty .moc file
being created in a failed build)

22 years agoHow to make nhtiles.bmp
warwick [Mon, 1 Jul 2002 05:26:57 +0000 (05:26 +0000)]
How to make nhtiles.bmp
(and also my little tileedit utility)

22 years agonhtiles.bmp may be needed (eg. Qt windowport)
warwick [Mon, 1 Jul 2002 05:23:47 +0000 (05:23 +0000)]
nhtiles.bmp may be needed (eg. Qt windowport)

22 years agoFix focus order for playerselection.
warwick [Mon, 1 Jul 2002 05:06:56 +0000 (05:06 +0000)]
Fix focus order for playerselection.

22 years agoAvoid some key handling problems on Mac.
warwick [Mon, 1 Jul 2002 05:05:04 +0000 (05:05 +0000)]
Avoid some key handling problems on Mac.
(will also be fixed another way in Qt/Mac, but I like to
be thorough :-)

22 years agoyet another missing FOUNTAIN spec
cohrs [Mon, 1 Jul 2002 04:21:45 +0000 (04:21 +0000)]
yet another missing FOUNTAIN spec
<Someone> just reported this.

22 years agograteful frozen monsters
cohrs [Mon, 1 Jul 2002 02:44:26 +0000 (02:44 +0000)]
grateful frozen monsters
a frozen (possibly sleeping) monster cannot be grateful unless it wakes up.
From a bug report.  The pit case can only happen if mfrozen is
non-zero, but other traps may leave msleeping set as well.

22 years agofix a typo, then -> than
cohrs [Mon, 1 Jul 2002 02:27:19 +0000 (02:27 +0000)]
fix a typo, then -> than

22 years agofeeling monsters while blind and levitating
cohrs [Sun, 30 Jun 2002 22:29:58 +0000 (22:29 +0000)]
feeling monsters while blind and levitating
<Someone> reported this during 3.4.0 beta.  If you are blind and levitating,
unseen monsters are shown as "I", just like when not levitating, but they
are never erased after they move, unlike not levitating.  Display this
case correctly as well.