]> granicus.if.org Git - nethack/log
nethack
6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-curses
nhmall [Mon, 19 Nov 2018 14:57:58 +0000 (09:57 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-curses

6 years ago.gitignore update
nhmall [Mon, 19 Nov 2018 04:53:49 +0000 (23:53 -0500)]
.gitignore update

6 years agofix #H7573 - impossible zero payment in money2mon
PatR [Mon, 19 Nov 2018 02:48:59 +0000 (18:48 -0800)]
fix #H7573 - impossible zero payment in money2mon

When paying for shop door or wall damage, if the entire amount was
covered by shop credit then impossible "zero payment in money2mon"
would occur as the shop code tried to transfer 0 zorkmids from hero
to shopkeeper after using credit to pay.

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-curses
nhmall [Sun, 18 Nov 2018 19:58:31 +0000 (14:58 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-curses

6 years agoRevert "Hint file for macOS X with curses."
Bart House [Sun, 18 Nov 2018 19:45:36 +0000 (11:45 -0800)]
Revert "Hint file for macOS X with curses."

This reverts commit f7fbbb8cb0e8fcd2912111ef24f216ca9bf5ff3b.

6 years agoMerge branch 'win-curses' of https://rodney.nethack.org:20040/git/NHsource into win...
Bart House [Sun, 18 Nov 2018 17:30:11 +0000 (09:30 -0800)]
Merge branch 'win-curses' of https://rodney.nethack.org:20040/git/NHsource into win-curses

6 years agoHint file for macOS X with curses.
Bart House [Sun, 18 Nov 2018 17:28:45 +0000 (09:28 -0800)]
Hint file for macOS X with curses.

6 years agoquiet some mismatched prototype warnings with visual studio compiler
nhmall [Sun, 18 Nov 2018 13:45:32 +0000 (08:45 -0500)]
quiet some mismatched prototype warnings with visual studio compiler

pager.c
.\pager.c(1886): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1887): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1888): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1889): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1890): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1891): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1893): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1895): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1896): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1897): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1898): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1902): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
.\pager.c(1921): warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'

6 years agofix a build error when curses is NOT enabled
nhmall [Sun, 18 Nov 2018 13:34:24 +0000 (08:34 -0500)]
fix a build error when curses is NOT enabled

Fix an error when curses build macros are not defined
makefile(1262) : fatal error U1083: target macro '$(PDCLIB)' expands to nothing

6 years agoupdate Install.nt
nhmall [Sun, 18 Nov 2018 12:59:59 +0000 (07:59 -0500)]
update Install.nt

6 years agoMakefile cut-and-paste error
nhmall [Sun, 18 Nov 2018 12:10:58 +0000 (07:10 -0500)]
Makefile cut-and-paste error

6 years agoMakefile macro correction
nhmall [Sun, 18 Nov 2018 11:57:17 +0000 (06:57 -0500)]
Makefile macro correction

6 years agomore curses Makfile mods
nhmall [Sun, 18 Nov 2018 11:48:47 +0000 (06:48 -0500)]
more curses Makfile mods

6 years agowindows VS Makefile with curses and PDCurses
nhmall [Sun, 18 Nov 2018 11:24:32 +0000 (06:24 -0500)]
windows VS Makefile with curses and PDCurses

6 years agoMerge branch 'win-minor' into win-curses
nhmall [Sun, 18 Nov 2018 09:32:28 +0000 (04:32 -0500)]
Merge branch 'win-minor' into win-curses

6 years agoBuild curses if PDCurses is available.
Bart House [Sun, 18 Nov 2018 07:56:31 +0000 (23:56 -0800)]
Build curses if PDCurses is available.

There are two ways to enable curses in the build.  Either set the
environment variable PDCURSES to a folder containing a PDCurses repository
OR place the PDCurses folder alongside the NetHack source repository.

6 years agoRevert "curses port: accept return on Windows platform"
nhmall [Sun, 18 Nov 2018 02:30:01 +0000 (21:30 -0500)]
Revert "curses port: accept return on Windows platform"

This reverts commit ac367ef4cc2cbad036964402ba541f869e6c8dd9.

6 years agoRevert "more CR on windows"
nhmall [Sun, 18 Nov 2018 02:29:41 +0000 (21:29 -0500)]
Revert "more CR on windows"

This reverts commit 83fb79b77597cc44658458872a81d406ae177487.

6 years agomore CR on windows
nhmall [Sun, 18 Nov 2018 02:17:43 +0000 (21:17 -0500)]
more CR on windows

6 years agocurses port: accept return on Windows platform
nhmall [Sun, 18 Nov 2018 01:27:21 +0000 (20:27 -0500)]
curses port: accept return on Windows platform

6 years agosrc/ formatting
PatR [Sun, 18 Nov 2018 00:40:53 +0000 (16:40 -0800)]
src/ formatting

Clean up quite a bit of minor things found with simple grep patterns:
operator at end of continued line instead of beginning of continuation
(and a few comments which produced false matches, so that they won't
do so next time), trailing spaces (only one or two of those), tabs (a
dozen or so of those), several casts which didn't have a space between
the type and the expression (I wasn't systematic about finding these).

I think the only code change was in the function for the help command.

6 years agoformatting: tile.c
PatR [Sun, 18 Nov 2018 00:31:22 +0000 (16:31 -0800)]
formatting: tile.c

A while back I changed tilemap.c to clean up the formatting of
generated tile.c.  This is a smaller change to revise the layout
of its big array.

6 years agoGetting build working.
Bart House [Sat, 17 Nov 2018 22:48:38 +0000 (14:48 -0800)]
Getting build working.

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Sat, 17 Nov 2018 11:22:56 +0000 (06:22 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agoMap curso blinking controlled by win32_cursorblink.
Bart House [Sat, 17 Nov 2018 05:48:00 +0000 (21:48 -0800)]
Map curso blinking controlled by win32_cursorblink.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Sat, 17 Nov 2018 04:55:02 +0000 (23:55 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agofeedback for missing readonly data files
PatR [Sat, 17 Nov 2018 02:49:12 +0000 (18:49 -0800)]
feedback for missing readonly data files

If bogusmon, engrave, epitaph, oralces, or rumors won't open, assume
it's because the file is missing so don't have impossible() tack on
"saving and restoring might fix this" when telling the player.
(Missing rumors or oracles previously only used pline() rather than
impossible() so this hadn't been an issue for them.  Now it would be.)

6 years agomissed include/wincurs.h
nhmall [Sat, 17 Nov 2018 02:00:11 +0000 (21:00 -0500)]
missed include/wincurs.h

6 years agocurses new file additions
nhmall [Sat, 17 Nov 2018 01:53:38 +0000 (20:53 -0500)]
curses new file additions

6 years agocurses changes to existing files
nhmall [Sat, 17 Nov 2018 01:51:22 +0000 (20:51 -0500)]
curses changes to existing files

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Sat, 17 Nov 2018 01:28:54 +0000 (20:28 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agoAdd some windows command line option hooks
nhmall [Sat, 17 Nov 2018 00:32:00 +0000 (19:32 -0500)]
Add some windows command line option hooks

6 years agomore vms (vmsbuild.com vs monstr.c)
PatR [Fri, 16 Nov 2018 23:34:09 +0000 (15:34 -0800)]
more vms (vmsbuild.com vs monstr.c)

Apparently I exited emacs without saving and the revised vmsbuild.com
ended up as a backup file that 'git nhadd' wouldn't see.  This was
supposed to be included in the patch committed several hours ago....

6 years agoDelete GDI objects when map window is destroyed.
Bart House [Fri, 16 Nov 2018 21:50:12 +0000 (13:50 -0800)]
Delete GDI objects when map window is destroyed.

6 years agoMenu check boxes drawn correctly when scaled.
Bart House [Fri, 16 Nov 2018 21:29:59 +0000 (13:29 -0800)]
Menu check boxes drawn correctly when scaled.

Changed from using pattern brush to strech blt when rendering check box.

6 years agoMade map cursor blink a compile time option.
Bart House [Fri, 16 Nov 2018 21:00:02 +0000 (13:00 -0800)]
Made map cursor blink a compile time option.

6 years agoCompleted map back buffer work and implemented map cursor blink.
Bart House [Fri, 16 Nov 2018 20:39:04 +0000 (12:39 -0800)]
Completed map back buffer work and implemented map cursor blink.

Map back buffer work is done eliminating all flickering caused by
clears of the front buffer during partial updates.

Implemented a cursor blink in both ascii and tile modes.

Fixed bug where we would lose fit to screen when entering rogue level.

6 years agovms build/install update
PatR [Fri, 16 Nov 2018 17:16:48 +0000 (09:16 -0800)]
vms build/install update

New-ish files 'engrave', 'epitaph', and 'bogusmon' added for 3.6.0
were not handled by playground setup.  NetHack runs without them so
limited testing didn't notice.

Add 'makedefs -s' to build them and include them in installed files.

Also, remove 'makedefs -m' and obsolete monstr.c.

6 years agoaugment codepage850-to-Unicode mappings in nttty
nhmall [Fri, 16 Nov 2018 13:09:18 +0000 (08:09 -0500)]
augment codepage850-to-Unicode mappings in nttty

6 years agoRemap unicode control codes.
Bart House [Fri, 16 Nov 2018 05:42:23 +0000 (21:42 -0800)]
Remap unicode control codes.

When running NetHack.exe in a console set to code page 850, the
multi-byte to wide character mapping will generate unicode values
in the unicode control code range.  These values need to be re-mapped
to unicode renderable glyphs using the same mappings we use for
control page 437 otherwise the console font might not render a character
for these unicode control values.

6 years agoRemoved temporary comment left in by mistake.
Bart House [Fri, 16 Nov 2018 04:58:15 +0000 (20:58 -0800)]
Removed temporary comment left in by mistake.

6 years agofollow-up bit for stale gold sym
nhmall [Thu, 15 Nov 2018 07:51:27 +0000 (02:51 -0500)]
follow-up bit for stale gold sym

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Thu, 15 Nov 2018 07:37:04 +0000 (02:37 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agoMerge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win...
nhmall [Thu, 15 Nov 2018 07:36:07 +0000 (02:36 -0500)]
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor

6 years agostale gold symbol displayed after symset change
nhmall [Thu, 15 Nov 2018 07:34:45 +0000 (02:34 -0500)]
stale gold symbol displayed after symset change

a stale gold symbol could be displayed on the status line following a switch
to a new symset, as observed and reported for Windows RogueEpyx symset.

An update is required for gold in the status line for a change to
any of the following:
    context.rndencode value
    the encoded glyph value for COIN_CLASS
    the gold amount

6 years agoRemove commented out line.
Bart House [Thu, 15 Nov 2018 05:08:59 +0000 (21:08 -0800)]
Remove commented out line.

6 years agoModified RIP dialog to take into account monitor DPI.
Bart House [Thu, 15 Nov 2018 04:44:02 +0000 (20:44 -0800)]
Modified RIP dialog to take into account monitor DPI.

6 years agoX11 menu searching
PatR [Thu, 15 Nov 2018 01:26:10 +0000 (17:26 -0800)]
X11 menu searching

I was experimenting with some potential changes to menu searching but
have not been satisfied with the result.  However, this bit of code
consolidation is worthwhile regardless of that.

6 years agoX11 NetHack.ad again
PatR [Thu, 15 Nov 2018 01:23:28 +0000 (17:23 -0800)]
X11 NetHack.ad again

STATUS_HILITES vs HILITE_STATUS:  use the config file option name
rather than source feature name in the "TTY-style status" comment.

6 years agoX11 resource defaults
PatR [Thu, 15 Nov 2018 01:18:12 +0000 (17:18 -0800)]
X11 resource defaults

Some of the items in NetHack.ad were separated from others by "!"
comment line rather than plain blank line and that tended to make it
look like the two items were directly related.  For the ones which
aren't, remove '!'.

I also expanded some comments and reordered a couple of resources,
moving 'slow' closer to top and advanced 'translations' farther down.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Wed, 14 Nov 2018 13:04:40 +0000 (08:04 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agonewline at end of file
nhmall [Wed, 14 Nov 2018 12:51:25 +0000 (07:51 -0500)]
newline at end of file

6 years agoAdded monitor dpi awareness to NetHackW splash dialog.
Bart House [Wed, 14 Nov 2018 04:48:56 +0000 (20:48 -0800)]
Added monitor dpi awareness to NetHackW splash dialog.

6 years agofix #H7536 - pet vampire behavior
PatR [Wed, 14 Nov 2018 00:29:48 +0000 (16:29 -0800)]
fix #H7536 - pet vampire behavior

Vampires tend to take vampire bat form and stay that way, unless/until
there's a closed door they want to pass in which case they change to
fog cloud form.  Those shifted forms are weak, so pet vampires tend
not to attack other monsters, and if they don't take damage, they
won't change to vampire form.  So, when comparing relative strength of
self and foe while deciding whether to attack another monster, treat
their own strength in weak form as if in vampire form, making them be
more aggressive.

Hostile vampires shouldn't need any comparable change.  They don't use
relative strengths when deciding whether to attack something.

6 years agofix github issue #159 - eating nurse corpses
PatR [Tue, 13 Nov 2018 23:05:54 +0000 (15:05 -0800)]
fix github issue #159 - eating nurse corpses

Fixes #159

The nurse monster definition is flagged to be able to convery poison
resistance when a corpse or tin is eaten, but the post-corpse code
for nurse healed HP and cured blindness then skipped the intrinsic
handling.

6 years agoMerge branch 'NetHack-3.6.2-beta01' into win-minor
nhmall [Tue, 13 Nov 2018 18:32:01 +0000 (13:32 -0500)]
Merge branch 'NetHack-3.6.2-beta01' into win-minor

6 years agoAdjust menu item rendering based on monitor dpi.
Bart House [Tue, 13 Nov 2018 06:40:36 +0000 (22:40 -0800)]
Adjust menu item rendering based on monitor dpi.

6 years agoMerge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win...
Bart House [Tue, 13 Nov 2018 05:39:05 +0000 (21:39 -0800)]
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor

6 years agoImplemented back buffer rendering to improve fit to screen rendering
Bart House [Tue, 13 Nov 2018 05:38:32 +0000 (21:38 -0800)]
Implemented back buffer rendering to improve fit to screen rendering
quality.

6 years agoMerge branch 'win-minor' into NetHack-3.6.2-beta01
nhmall [Tue, 13 Nov 2018 04:15:13 +0000 (23:15 -0500)]
Merge branch 'win-minor' into NetHack-3.6.2-beta01

6 years agoMakefile update to reference recently added file
nhmall [Tue, 13 Nov 2018 04:10:42 +0000 (23:10 -0500)]
Makefile update to reference recently added file

6 years agoAdjust tile size to bounds of text meterics when in ascii mode.
Bart House [Tue, 13 Nov 2018 03:36:08 +0000 (19:36 -0800)]
Adjust tile size to bounds of text meterics when in ascii mode.

6 years agoStarted work to support per monitor DPI. Using DPI to scale tiles
Bart House [Tue, 13 Nov 2018 01:45:22 +0000 (17:45 -0800)]
Started work to support per monitor DPI.  Using DPI to scale tiles
appropriately.

Renamed ntassert to nhassert.  (Naming mistake caused by using ntassert
at work).

Re-ordered a few more includes to get window headers included before
nethack headers.

6 years agocomment tidbit
PatR [Mon, 12 Nov 2018 19:08:59 +0000 (11:08 -0800)]
comment tidbit

6 years agoconflicting countdowns again
PatR [Mon, 12 Nov 2018 19:02:40 +0000 (11:02 -0800)]
conflicting countdowns again

Use the make_foo() intrinsic set/reset routines instead of trying
to manipulate the intrinsics directly.  Previous patch left Dex
down by 1 if stoning caused wounded legs to be fixed, and left
delayed killer allocated if stoning cured sliming or vice versa.

6 years agoRemoving support for Visual Studio 2015 solution.
Bart House [Mon, 12 Nov 2018 17:13:51 +0000 (09:13 -0800)]
Removing support for Visual Studio 2015 solution.

6 years agoconflicting countdowns
PatR [Mon, 12 Nov 2018 10:13:32 +0000 (02:13 -0800)]
conflicting countdowns

I tried 'pick all' in the #wizintrinsics' menu and after 30 turns,
died with "poisoned by a poisoned, while vomiting".  Food poisioning
and/or terminal illness beat the other fatal conditions to the coup
de gras.  However, the final stage of vomiting sets Sick to 0 cure
food poisoning and ends up clobbering the killer reason if Sick is
due to terminal illness.  It's feasible for that to happen without
using #wizintrinsic, so this fixes that, and also a few other
combinations that seemed contradictory:
1) limbs turn to stone during Stoned countdown now cures wounded legs;
2) turn to stone (a couple of turns later) cures vomiting and sliming;
3) turning to slime during Slimed countdown cures stoning.

6 years agoEnforced the inclusion of windows headers before nethack headers.
Bart House [Mon, 12 Nov 2018 09:58:56 +0000 (01:58 -0800)]
Enforced the inclusion of windows headers before nethack headers.
Moved the code page 437 mapping table to winnt.c so that it could be
used in window and console clients.
Added check that fonts support unicode values we use from code page 437.
Use unicode to draw text if font supports it otherwise use ASCII.

6 years agoprayer vs blocked by boulder
PatR [Mon, 12 Nov 2018 00:04:45 +0000 (16:04 -0800)]
prayer vs blocked by boulder

Salvaged from an old, unfinished patch.  When checking whether the
hero is trapped by walls and solid rock, adjacent boulders are
evaluated on whether they can be pushed out of the way.  Extend that
evaluation:  (1) two boulders on a spot are pushable if there is a
pool beyond that spot, and (2) boulders can't be pushed diagonally
in Sokoban.

6 years agofix #H7065 - clairvoyance shows trap over monsters
PatR [Sun, 11 Nov 2018 22:28:54 +0000 (14:28 -0800)]
fix #H7065 - clairvoyance shows trap over monsters

and over the hero.  3.6.0's clairvoyance tried to show things in
a non-standard sequence, which was intentional but had unintended
side-effects like the disappearing monsters complained about in the
report.  To make it work as intended would have required --More--
whenever it kicked in, which is much too intrusive when it happens
every N turns rather than when explicitly casting the spell.

Redo it substantially, and give preference to monsters over objects,
objects over traps, and traps over underlying terrain like normal
vision-based display does.  It now detects all monsters within its
bounding box but shows ones which aren't directly in view as
"unseen monster" unless via spell cast at skilled or expert, or at
basic when also having intrinsic clairvoyance.

6 years agoMakefile build updates
nhmall [Sun, 11 Nov 2018 20:39:13 +0000 (15:39 -0500)]
Makefile build updates

6 years agomerge fluff
nhmall [Sun, 11 Nov 2018 15:48:08 +0000 (10:48 -0500)]
merge fluff

6 years agomerge
nhmall [Sun, 11 Nov 2018 15:29:52 +0000 (10:29 -0500)]
merge

6 years agocouple of #wizintrinsic fixes
PatR [Sun, 11 Nov 2018 02:22:38 +0000 (18:22 -0800)]
couple of #wizintrinsic fixes

When #wizinstrinsic was expanded to be able to set any timed attribute,
some that need more than just a timeout counter were left inconsistent.
1) Timed Flying wasn't blocked by levitation, and existing flight
   wasn't becoming blocked by timed levitation.  Also, eventual flight
   timeout wasn't updating the status line, so false 'Fly' condition
   remained shown until a status update happened for some other reason.
2) Setting timer for Warn_of_mon didn't set up any type of monster to
   warn about so wouldn't do anything.  This sets that to grid bug
   unless already set due to polymorph form or artifact that warns.

The end.c portion is just a bit of formatting.

6 years agoIgnore .vs hidden folders generated by visual studio 2017.
Bart House [Sat, 10 Nov 2018 20:44:41 +0000 (12:44 -0800)]
Ignore .vs hidden folders generated by visual studio 2017.

6 years agoFix crash that can occur when panic is called early.
Bart House [Sun, 11 Nov 2018 00:37:12 +0000 (16:37 -0800)]
Fix crash that can occur when panic is called early.

6 years agoRemoved the defining of WIN32CONNDEBUG for NethackW.
Bart House [Sat, 10 Nov 2018 22:38:00 +0000 (14:38 -0800)]
Removed the defining of WIN32CONNDEBUG for NethackW.
Defined NOTTYGRAPHICS for NethackW.

6 years agootransit_msg() fixes
PatR [Sat, 10 Nov 2018 09:37:23 +0000 (01:37 -0800)]
otransit_msg() fixes

Fixes #156

githib issue #156 complains that "The Excalibur falls down the stairs,"
is using poor grammar despite the fact that the usual drop message is
"You drop the +0 Excalibur."  I agree.  Change it to be "Excalibur
falls down the stairs."  (Drop message remains unchanged.)

While looking at that, I noticed that when knocking other items down
stairs, text was being appended to the formatted object name.  It was
probably safe due to the space reserved for inserting a prefix while
formatting an object's name, which becomes available for a suffix
after that name has been copied into otransit_msg()'s local buffer,
but using a separate buffer is safer.

6 years agoimpossible worm_cross non-adjacent location
PatR [Fri, 9 Nov 2018 23:43:50 +0000 (15:43 -0800)]
impossible worm_cross non-adjacent location

Attempting to mount a long worm tail could yield
\#ride -> mount_steed() -> test_move() -> worm_cross() ->
impossible("worm_cross checking for non-adjacent location").

6 years agobuild and bug fixes for USE_OLDARGS
PatR [Thu, 8 Nov 2018 23:33:03 +0000 (15:33 -0800)]
build and bug fixes for USE_OLDARGS

New:  call to panic() in impossible() used arbitrary string as a
format so was vulnerable to percent signs in that string.  (This
potentially serious problem is not limited to USE_OLDARGS.)

Old:  revised message string for impossible ("save/restore might fix
this" instead of "perhaps you'd better quit") passed wrong number of
arguments to pline() when using the clumsy VA_PASSx() mechanism (was
missing arg 0 for the fixed-arg format argument).

Old:  varargs config_error_add() in files.c wouldn't compile for
USE_OLDARGS.  Evidently no one has been impacted by that but this
fixes it anyway.  (Two problems:  prototype used FDECL() when it
should have been using VDECL(), and calls to config_error_add() in
the same file would need the VA_PASSx() stuff to force presence of
all optional args.  I moved it instead of adding the latter.)

6 years agoFix some buffer underflows
Pasi Kallinen [Thu, 8 Nov 2018 19:02:24 +0000 (21:02 +0200)]
Fix some buffer underflows

6 years agoFix memory leak in makedefs
Pasi Kallinen [Thu, 8 Nov 2018 15:38:36 +0000 (17:38 +0200)]
Fix memory leak in makedefs

6 years agoFuzz testing debug tool
Pasi Kallinen [Thu, 8 Nov 2018 13:50:53 +0000 (15:50 +0200)]
Fuzz testing debug tool

Add code to run a fuzz tester, simulating (more-or-less) random
keyboard mashing. There's no option to turn it on, you need to
set iflags.debug_fuzzer on via a debugger or something along
those lines.

6 years ago^X about armor
PatR [Wed, 7 Nov 2018 22:50:44 +0000 (14:50 -0800)]
^X about armor

Enlightenment feedback for "nudist" was added 3.5 years ago.  Ever
since, ^X has been reporting "you are not wearing any armor" when
wearing a shield without any other armor.

Since Valkyrie starts in that situation, it's very surprising that no
one ever noticed 'til now (or did notice and didn't bother to report).

6 years agofixes update for odd wording
nhmall [Wed, 7 Nov 2018 22:08:41 +0000 (17:08 -0500)]
fixes update for odd wording

6 years agofix odd wording "The boulder triggers and fills a pit"
nhmall [Wed, 7 Nov 2018 22:06:45 +0000 (17:06 -0500)]
fix odd wording "The boulder triggers and fills a pit"

6 years agoReport insanities via impossible
Pasi Kallinen [Wed, 7 Nov 2018 16:50:09 +0000 (18:50 +0200)]
Report insanities via impossible

6 years agoPrevent out of array index
Pasi Kallinen [Wed, 7 Nov 2018 16:39:00 +0000 (18:39 +0200)]
Prevent out of array index

6 years agofix broken build cause by missing semicolon
nhmall [Mon, 5 Nov 2018 20:33:02 +0000 (15:33 -0500)]
fix broken build cause by missing semicolon

6 years agoFeedback on trying to pick up stairs or altar
Pasi Kallinen [Mon, 5 Nov 2018 16:35:11 +0000 (18:35 +0200)]
Feedback on trying to pick up stairs or altar

6 years agoremoving all items via 'A' when looting container
PatR [Sun, 4 Nov 2018 06:17:49 +0000 (23:17 -0700)]
removing all items via 'A' when looting container

Followup to 'fix #148' patch:  looting a container with menustyle:Full
wasn't offering a chance to remove everything in one go.  That was due
to an error I introuduced 2.5 years ago with commit
529dad8ef15d255e00ba2d75dd9a92d5030d97f5 when I changed how the flags
passed to query_category() were being set up.  It accidentally switched
'A' from take-out to put-in but the only code to handle 'A' at that
time would take everything out (from container to inventory).

Prior to that, removing everything worked as intended and putting in
everything wasn't supported.  Now 'A - autoselect all' is a viable
choice for both in and out.

6 years agofix github issue #154 - #loot in A-autoselect all
PatR [Sun, 4 Nov 2018 00:45:31 +0000 (17:45 -0700)]
fix github issue #154 - #loot in A-autoselect all

Fixes #154

With menustyle:Full, picking 'A - autoselect all' when putting items
into a container ran code for taking things out and there wasn't any
corresponding code for putting things in.

Add some put-in-everything code.  Taking things out doesn't offer
'A - autoselect all' as a choice so the code mentioned above may now
be dead.  Taking everything out seems like something that's much more
likely to be desired than putting everything in.

6 years agoyet another ^X revision...
PatR [Sat, 3 Nov 2018 09:01:11 +0000 (02:01 -0700)]
yet another ^X revision...

Hopefully this will be the last one.  Change from a text window to
a menu so that it is possible to scroll backwards (without needing
scrollbars) via '^' and '<' keys.  End of game disclosure for
attributes still uses a single-forward-pass text window.

Also, move the recently added weapon proficiency line from the new
'basic' section to right after the "you are wielding" line at the
end of the 'status' section.

6 years agoMake Mjollnir lightning noisy
Pasi Kallinen [Fri, 2 Nov 2018 18:49:11 +0000 (20:49 +0200)]
Make Mjollnir lightning noisy

6 years ago^X again
PatR [Fri, 2 Nov 2018 07:59:01 +0000 (00:59 -0700)]
^X again

Add a new line for one last missing status field:  gold.
Also add one for proficiency with current weapon.

Move a few lines from 'characteristics' to 'background' and a few
more from 'characteristics' to new 'basics', leaving characteristics
with the six original characteristics:  Str, Con, Dec, &c.

6 years agofix #H7501 again - searching
PatR [Fri, 2 Nov 2018 07:41:33 +0000 (00:41 -0700)]
fix #H7501 again - searching

Previous change resulted in 'finding' visible monsters.

6 years agogrammar
nhmall [Fri, 2 Nov 2018 01:04:23 +0000 (21:04 -0400)]
grammar

6 years agofix #7501 - searching while blind
PatR [Fri, 2 Nov 2018 00:37:47 +0000 (17:37 -0700)]
fix #7501 - searching while blind

My "fix github issue #38 - indentation vs 'if {}'" patch, commit
d2ae45984ed9d007112e1de3aa65fc6c04773fdf, broke finding unseen
monsters via searching.  Most notable if blind, but applied to
invisible monsters too.

6 years agosingle fixes36.2 entry for special case wish/genocide since release
nhmall [Wed, 31 Oct 2018 13:11:57 +0000 (09:11 -0400)]
single fixes36.2 entry for special case wish/genocide since release

6 years agowatchmen at genocide prompt
nhmall [Wed, 31 Oct 2018 12:49:18 +0000 (08:49 -0400)]
watchmen at genocide prompt

Report stated:
type "watchmen" into a genocide prompt, it says no such creatures exist in the world
type "watchman" and it says "wiped out all watchmen"

fixes #151