]> granicus.if.org Git - nethack/log
nethack
5 years agoMakefile.utl bit
nhmall [Sun, 1 Dec 2019 00:18:00 +0000 (19:18 -0500)]
Makefile.utl bit

5 years agouse the copyright statement provided by the Lua distribution in lua.h
nhmall [Sat, 30 Nov 2019 23:43:57 +0000 (18:43 -0500)]
use the copyright statement provided by the Lua distribution in lua.h

5 years agoremove variable left over from earlier testing
nhmall [Sat, 30 Nov 2019 22:34:10 +0000 (17:34 -0500)]
remove variable left over from earlier testing

5 years agoinstance_globals update to include lua_ver storage
nhmall [Sat, 30 Nov 2019 22:24:11 +0000 (17:24 -0500)]
instance_globals update to include lua_ver storage

5 years agoget lua version from lua itself
nhmall [Sat, 30 Nov 2019 22:23:14 +0000 (17:23 -0500)]
get lua version from lua itself

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sat, 30 Nov 2019 20:53:38 +0000 (15:53 -0500)]
Merge branch 'NetHack-3.6'

5 years agoleave option setting as previous (it was not part of the change)
nhmall [Sat, 30 Nov 2019 20:51:58 +0000 (15:51 -0500)]
leave option setting as previous (it was not part of the change)

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sat, 30 Nov 2019 20:41:52 +0000 (15:41 -0500)]
Merge branch 'NetHack-3.6'

5 years agoone more win_proc
nhmall [Sat, 30 Nov 2019 20:27:04 +0000 (15:27 -0500)]
one more win_proc

5 years agobuild with TEXTCOLOR undef'd turned up a couple of things
nhmall [Sat, 30 Nov 2019 20:05:48 +0000 (15:05 -0500)]
build with TEXTCOLOR undef'd turned up a couple of things

Also, one more has_color in obsolete sys/mac folder. Adjusted code.

5 years agosome dead code eliminations and a couple of documentation updates
nhmall [Sat, 30 Nov 2019 18:35:14 +0000 (13:35 -0500)]
some dead code eliminations and a couple of documentation updates

5 years agohas_color() performance fixes
nhmall [Sat, 30 Nov 2019 16:44:07 +0000 (11:44 -0500)]
has_color() performance fixes

Performance profiling showed that multiple strcmpi() calls were
occurring each and every time a character was going to the map.

This update:
- honors the WC_COLOR capability
- It allows a window-port to control individual color availability should the window-port wish to do so.
- Makes checking on the individual colors for the active window-port is a straightforward table lookup at the CLR_ offset.

iflags.use_color remains a master on/off switch for use of color, regardless of the capability
compiled into the game (default TRUE).

The has_color() routine, which is now a shared routine in src/windows.c, could likely be made
into a simple macro to eliminate the function call, but this update does not go that far.

This hits a lot of port files due to the window-port interface change, mostly cookie-cutter.

5 years agomore Windows Makefile adjustments
nhmall [Sat, 30 Nov 2019 03:40:30 +0000 (22:40 -0500)]
more Windows Makefile adjustments

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Sat, 30 Nov 2019 03:40:06 +0000 (22:40 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoinsert Lua version
nhmall [Sat, 30 Nov 2019 03:37:30 +0000 (22:37 -0500)]
insert Lua version

Instead of the hardcoded value that's in this right at the moment,
the intention is to get the Lua version information directly from
Lua itself for the insertion. For now, this will have to do.

5 years agofix a memory leak
PatR [Sat, 30 Nov 2019 02:31:45 +0000 (18:31 -0800)]
fix a memory leak

Memory allocated for a trap in getlev() wasn't being freed.  There
is already one extra allocation which is supposed to get freed after
the loop, but the 'keepgoing' flag caused an extra trap allocation
before loop termination.  So the unintentional one got freed but did
so by intercepting the free for the end-of-list one.

Fruit had similar code which applied to full game save and restore
rather than level save and restore so wasn't as noticeable.

5 years agoa couple of very minor follow-up bits
nhmall [Sat, 30 Nov 2019 02:19:31 +0000 (21:19 -0500)]
a couple of very minor follow-up bits

5 years agomore lua notice from makedefs.c to mdlib.c
PatR [Sat, 30 Nov 2019 01:19:37 +0000 (17:19 -0800)]
more lua notice from makedefs.c to mdlib.c

Add missing dependency of makedefs needing src/mdlib.c to unix
Makefile.src.

5 years agomove lua notice to makedefs.c and dat/options
PatR [Sat, 30 Nov 2019 00:05:14 +0000 (16:05 -0800)]
move lua notice to makedefs.c and dat/options

Prefix the lua notice with a one-line explanation.  One minor change:
the copyright date didn't match the one from the actual lua notice.

5 years agono longer used variable
PatR [Fri, 29 Nov 2019 23:59:50 +0000 (15:59 -0800)]
no longer used variable

5 years agobuild fix for unix
PatR [Fri, 29 Nov 2019 23:58:03 +0000 (15:58 -0800)]
build fix for unix

Add src/mdlib.[co] to Makefile.src.  Dependencies for mklib.o have
been added manually rather than via 'make depend'.

5 years agoget rid of LUA_INTCAST defines
nhmall [Fri, 29 Nov 2019 22:40:58 +0000 (17:40 -0500)]
get rid of LUA_INTCAST defines

5 years agocasting lua_tointeger
nhmall [Fri, 29 Nov 2019 22:38:51 +0000 (17:38 -0500)]
casting lua_tointeger

5 years agoMerge branch 'master' into NetHack-3.7
nhmall [Fri, 29 Nov 2019 22:01:29 +0000 (17:01 -0500)]
Merge branch 'master' into NetHack-3.7

5 years agoMerge branch 'NetHack-3.6'
nhmall [Fri, 29 Nov 2019 21:57:23 +0000 (16:57 -0500)]
Merge branch 'NetHack-3.6'

5 years agoRead lua files more efficiently
Pasi Kallinen [Fri, 29 Nov 2019 19:48:59 +0000 (21:48 +0200)]
Read lua files more efficiently

... replacing horribly hacky loop.

5 years agofix teetering typo
PatR [Fri, 29 Nov 2019 19:38:42 +0000 (11:38 -0800)]
fix teetering typo

do.c:1005:54: warning: address of function 'uescaped_shaft' will always
      evaluate to 'true' [-Wpointer-bool-conversion]
        if (trap && (uteetering_at_seen_pit(trap) || uescaped_shaft)) {
                                                  ~~ ^~~~~~~~~~~~~~

5 years agomove fixes entry to correct section
nhmall [Fri, 29 Nov 2019 17:05:21 +0000 (12:05 -0500)]
move fixes entry to correct section

5 years agomore things considered when you're on the brink
nhmall [Fri, 29 Nov 2019 16:14:55 +0000 (11:14 -0500)]
more things considered when you're on the brink

5 years agoanother Windows Makefile bit
nhmall [Fri, 29 Nov 2019 04:36:15 +0000 (23:36 -0500)]
another Windows Makefile bit

Ensure the tools build whether a CROSSCOMPILE_HOST build, or
when there is no CROSSCOMPILE.

5 years agoupdated sfdata.c
nhmall [Fri, 29 Nov 2019 03:50:28 +0000 (22:50 -0500)]
updated sfdata.c

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Fri, 29 Nov 2019 03:49:25 +0000 (22:49 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agoresolve 48 warning building on Mac OS X
nhmall [Fri, 29 Nov 2019 03:48:57 +0000 (22:48 -0500)]
resolve 48 warning building on Mac OS X

5 years agoput back unintended removal of end of line strip
nhmall [Fri, 29 Nov 2019 01:56:42 +0000 (20:56 -0500)]
put back unintended removal of end of line strip

5 years agoupdates to extended version info
nhmall [Fri, 29 Nov 2019 01:20:04 +0000 (20:20 -0500)]
updates to extended version info

5 years agofix a gcc warning
nhmall [Fri, 29 Nov 2019 00:05:39 +0000 (19:05 -0500)]
fix a gcc warning

5 years ago3.7: goldX and other stuff
PatR [Thu, 28 Nov 2019 23:00:54 +0000 (15:00 -0800)]
3.7: goldX and other stuff

Move option variable goldX (True: treat gold as BUC unknown, False:
treat gold as uncursed during BUCX filtering) from iflags to flags
so that it persists across save/restore.

Get rid of a few obsolete things from struct flags.

Try to make the 'cursesgraphics' option work although I don't think
that it was ever functional enough for anybody to use so probably
could have been removed instead.

Bump EDITLEVEL; any current save files are invalid.

Demote status from Beta to Work-in-Progress.

I modified src/sfdata.c manually (not included here) to get a full
build.  The Unix Makefile.src needs to be taught when and how to
regenerate it.

5 years agoGuidebook update from cron
nhmall [Thu, 28 Nov 2019 17:37:54 +0000 (12:37 -0500)]
Guidebook update from cron

5 years agoMerge branch 'NetHack-3.6'
nhmall [Thu, 28 Nov 2019 17:35:37 +0000 (12:35 -0500)]
Merge branch 'NetHack-3.6'

5 years agoThis is cron-daily v1-Nov-24-2019. guidebook updated: doc/Guidebook.txt
nhw_cron [Thu, 28 Nov 2019 17:17:54 +0000 (12:17 -0500)]
This is cron-daily v1-Nov-24-2019.  guidebook updated: doc/Guidebook.txt

5 years agoMerge branch 'NetHack-3.7'
nhmall [Thu, 28 Nov 2019 04:07:50 +0000 (23:07 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Thu, 28 Nov 2019 04:07:29 +0000 (23:07 -0500)]
Merge branch 'NetHack-3.6'

5 years agoyet more Windows Makefile
nhmall [Thu, 28 Nov 2019 03:34:55 +0000 (22:34 -0500)]
yet more Windows Makefile

5 years agoallow testing of CROSSCOMPILE without cross-compiler using windows Makefile
nhmall [Thu, 28 Nov 2019 03:11:08 +0000 (22:11 -0500)]
allow testing of CROSSCOMPILE without cross-compiler using windows Makefile

5 years agoremove c files from nethack.tags generation
nhmall [Thu, 28 Nov 2019 02:28:20 +0000 (21:28 -0500)]
remove c files from nethack.tags generation

I noticed that src/sfdata.c and include/sfproto.h come out the same without those c files in the list. Remove them.

5 years agoreturn struct fields borrowed in 3.6
nhmall [Thu, 28 Nov 2019 01:18:45 +0000 (20:18 -0500)]
return struct fields borrowed in 3.6

This will break existing 3.7 save/bones.

5 years agoparanoid_confirmation:eating
PatR [Thu, 28 Nov 2019 00:27:13 +0000 (16:27 -0800)]
paranoid_confirmation:eating

Add 'eating' (synonym 'continue') to the list of things that can be
set via paranoid_confirmation to require "yes" instead of "y" when
the user is prompted about something, in this case "Continue eating?".

dat/opthelp was missing a few of the paranoid_confirmation choices.

5 years agountested curses number pad fix
PatR [Wed, 27 Nov 2019 23:19:52 +0000 (15:19 -0800)]
untested curses number pad fix

This compiles ok but I don't have a number pad to test it with.

5 years agonumber pad changes from pull request #247
nhmall [Wed, 27 Nov 2019 22:19:55 +0000 (17:19 -0500)]
number pad changes from pull request #247

Below is the accompanying text from the pull request on
GitHub https://github.com/NetHack/NetHack/pull/247:

> This fixes the issue brought up in https://www.reddit.com/r/nethack/comments/dv3pae/curses_and_the_numberpad/?st=k3hgply6&sh=dbc2bf7d .
>
> I don't know why the "regular" (tty) method doesn't seem to work for him,
> but I'm going to chalk it up to a PDCurses oddity. What I do know, however,
> is that the alternate method I added a year ago or maybe longer, that allows
> numpad usage even with number_pad:0 (to retain the default keybindings in case
> an user is used to them, while keeping number pad behaviour making sense,
> similar to NetHack4+friends) was only partially implemented, for some reason.
> This adds the rest of the keys, meaning that this means of key interpretation
> should be more realible. KEY_A2/B1/B3/C2 are not standard keys in the Curses
> documentation, and is thus behind an ifdef -- but PDCurses, amongst other
> implementations, makes use of them.
>
> As a side effect, Home/End/PgUp/PgDn are now interpreted as diagonal movement,
> since some terminals interpret number_pad keys that way. I do not consider this
> a problem since they went unused in normal gameplay anyway (This does not
> interfere with menus or similar).

Closes #247

5 years agoMerge branch 'FredrIQ-numpad' into NetHack-3.6
nhmall [Wed, 27 Nov 2019 22:14:15 +0000 (17:14 -0500)]
Merge branch 'FredrIQ-numpad' into NetHack-3.6

5 years agoMerge branch 'NetHack-3.6' of https://github.com/FredrIQ/NetHack into FredrIQ-numpad
nhmall [Wed, 27 Nov 2019 22:04:35 +0000 (17:04 -0500)]
Merge branch 'NetHack-3.6' of https://github.com/FredrIQ/NetHack into FredrIQ-numpad

5 years agowarning bit in a file that is only a proof-of-concept
nhmall [Wed, 27 Nov 2019 20:19:57 +0000 (15:19 -0500)]
warning bit in a file that is only a proof-of-concept

5 years agofix part of #H9467 - clairvoyance vs sensed mons
PatR [Wed, 27 Nov 2019 19:24:23 +0000 (11:24 -0800)]
fix part of #H9467 - clairvoyance vs sensed mons

When a monster is drawn on the map, remove any "remembered, unseen
monster" glyph being shown at the same spot.  Clairvoyance shows
all monsters in vicinty, then ones which can't be seen are replaced
with the 'I' glyph (which is on the object layer or the display,
not the monster layer show is subject to different update behavior).
But subsequent monster refresh didn't get rid of it when a sensed
monster was displayed over it.  (3.6.1 included a similar fix for
warned-of monsters.)

Also during clairvoyance, don't draw an 'I' at a spot that will
immediately be refreshed with a monster because 'I' clobbers any
remembered object at the same location.

5 years agoThis is cron-daily v1-Nov-24-2019. files updated: Files
nhw_cron [Tue, 26 Nov 2019 23:42:19 +0000 (18:42 -0500)]
This is cron-daily v1-Nov-24-2019.  files updated: Files

5 years agoanother lib bit
nhmall [Wed, 27 Nov 2019 18:53:57 +0000 (13:53 -0500)]
another lib bit

5 years agomissed a part of vmsbuild.com
nhmall [Wed, 27 Nov 2019 18:48:25 +0000 (13:48 -0500)]
missed a part of vmsbuild.com

5 years agoMerge branch 'NetHack-3.6'
nhmall [Wed, 27 Nov 2019 18:36:12 +0000 (13:36 -0500)]
Merge branch 'NetHack-3.6'

5 years agomore lib subfolder updates
nhmall [Wed, 27 Nov 2019 18:19:45 +0000 (13:19 -0500)]
more lib subfolder updates

5 years agoignore 3.7 file if present
PatR [Wed, 27 Nov 2019 17:53:40 +0000 (09:53 -0800)]
ignore 3.7 file if present

5 years agoanother visual studio update - dirs.props
nhmall [Wed, 27 Nov 2019 16:22:11 +0000 (11:22 -0500)]
another visual studio update - dirs.props

5 years agoFix alternate number pad interpretation only working for diagonals
Fredrik Ljungdahl [Wed, 27 Nov 2019 15:44:17 +0000 (16:44 +0100)]
Fix alternate number pad interpretation only working for diagonals

This fixes the issue brought up at https://www.reddit.com/r/nethack/comments/dv3pae/curses_and_the_numberpad/?st=k3hgply6&sh=dbc2bf7d .

I don't know why the "regular" (tty) method doesn't seem to work for him,
but I'm going to chalk it up to a PDCurses oddity. What I do know, however,
is that the alternate method I added a year ago or maybe longer, that allows
numpad usage even with number_pad:0 (to retain the default keybindings in case
an user is used to them, while keeping number pad behaviour making sense,
similar to NetHack4+friends) was only partially implemented, for some reason.
This adds the rest of the keys, meaning that this means of key interpretation
should be more realible. KEY_A2/B1/B3/C2 are not standard keys in the Curses
documentation, and is thus behind an ifdef -- but PDCurses, amongst other
implementations, makes use of them.

As a side effect, Home/End/PgUp/PgDn are now interpreted as diagonal movement,
since some terminals interpret number_pad keys that way. I do not consider this
a problem since they went unused in normal gameplay anyway (This does not
interfere with menus or similar).

5 years agovisual studio project updates
nhmall [Wed, 27 Nov 2019 16:07:41 +0000 (11:07 -0500)]
visual studio project updates

5 years agoanother windows Makefile bit
nhmall [Wed, 27 Nov 2019 12:59:36 +0000 (07:59 -0500)]
another windows Makefile bit

5 years agoWindows mingw Makefile updates
nhmall [Wed, 27 Nov 2019 06:34:53 +0000 (01:34 -0500)]
Windows mingw Makefile updates

5 years agoMerge branch 'NetHack-3.7'
nhmall [Wed, 27 Nov 2019 06:27:39 +0000 (01:27 -0500)]
Merge branch 'NetHack-3.7'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Wed, 27 Nov 2019 06:27:11 +0000 (01:27 -0500)]
Merge branch 'NetHack-3.6'

5 years agowindows Makefile updates
nhmall [Wed, 27 Nov 2019 06:25:17 +0000 (01:25 -0500)]
windows Makefile updates

5 years ago3.7 Unix Makefiles
PatR [Wed, 27 Nov 2019 03:27:00 +0000 (19:27 -0800)]
3.7 Unix Makefiles

Copy lib/lua-$(VERSION)/src/liblua.h to lib/lua/ rather than lib/.

Instead of copying any of the header files or telling the compiler
where to find the lua ones, generate include/nhlua.h on the fly and
restrict the knowledge of where they are to it (paths are relative
to include/).

|/* nhlua.h - generated by top Makefile */
|#include "../lib/lua-5.3.5/src/lua.h"
|LUA_API int   (lua_error) (lua_State *L) NORETURN;
|#include "../lib/lua-5.3.5/src/lualib.h"
|#include "../lib/lua-5.3.5/src/lauxlib.h"
|/*nhlua.h*/

This might need to be redone (or augmented by having CFLAGS add back
'-I path-to-lua') if some compiler can't find '#include "luaconf.h"'
issued by lua.h.

5 years agoinstructional doc bit
nhmall [Wed, 27 Nov 2019 00:35:46 +0000 (19:35 -0500)]
instructional doc bit

5 years agoprepare branch for travis-ci
nhmall [Wed, 27 Nov 2019 00:26:49 +0000 (19:26 -0500)]
prepare branch for travis-ci

5 years agomsdos cross-compile bits
nhmall [Wed, 27 Nov 2019 00:06:45 +0000 (19:06 -0500)]
msdos cross-compile bits

5 years agoanother msdos cross-compile bit
nhmall [Tue, 26 Nov 2019 05:34:57 +0000 (00:34 -0500)]
another msdos cross-compile bit

5 years agomore msdos cross-compile fixes
nhmall [Tue, 26 Nov 2019 05:02:38 +0000 (00:02 -0500)]
more msdos cross-compile fixes
undefined reference to g.variables if certain parts of
drawing.c are included in host-side utilities, so
surround the offending code in
->  #if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_TARGET)

5 years agolinux-hosted msdos cross-compiler updates
nhmall [Tue, 26 Nov 2019 03:47:54 +0000 (22:47 -0500)]
linux-hosted msdos cross-compiler updates

5 years agoalignment of mimicked or polymorphed altars
PatR [Mon, 25 Nov 2019 23:01:40 +0000 (15:01 -0800)]
alignment of mimicked or polymorphed altars

A reddit thread about an unaligned altar in an aligned temple was
a tipoff that mimics posing as altars didn't have any particular
alignment.  The look-at code was misusing an operloaded field of the
underlying terrain.  Pick an alignment at random when taking on the
appearance of an altar, store it in the mimic's mon->mextra->mcorpsenm
field, and have look-at use that.

Also, dropping a ring of polymorph into a sink can transform it, and
one possible outcome is an altar.  In this case, the alignment is
part of the location's topology, but code setting that up was using
Align2amask(rn2(foo)).  That's a macro which evaluates its argument
more than once.  The first evaluation was effectively a no-op.  If
the second evaluation picked lawful then the result was lawful as
intended.  But if the second picked non-lawful and the third picked
lawful, the result would end up as none-of-the-above (a value of 3
when it needs to be a single-bit mask of 1, 2, or 4).

5 years agolua reorganization
PatR [Mon, 25 Nov 2019 20:20:42 +0000 (12:20 -0800)]
lua reorganization

Reduce the implied reliance of a specific version of lua.

Instead of copying liblua.a to src/, copy it to lib/.  Instead of
telling the compiler to look for headers in lib/lua-5.3.5/src/ as
well as in include/, copy the relevant ones to lib/ and tell the
compiler to look for them there.  'make spotless' in src/ will
remove both the object library and the header files from lib/ but
there really should be a new Makefile.lib to take care of that
directory.

Update Makefile.src to be able to build lua in case someone starts
with 'make all' there instead of in the top Makefile.  It doesn't
duplicate the option to fetch the lua source package though.

NHinternal/../genFiles.c has been updated to mention lib/liblua.a
and lib/lua*.h as 'generated at compile time' in Files and to skip
lib/lua-* entirely if it comes across that (so not operating on a
completely clean tree).  But it won't be accurate unless/until
other ports stage their lua files there instead of in src/ and
lib/lua-$(VERSION)/src/.

I haven't tried 'make depend' to see what it makes of the numerous
changes....

5 years agomore questpgr removal from makedefs
PatR [Mon, 25 Nov 2019 18:07:11 +0000 (10:07 -0800)]
more questpgr removal from makedefs

5 years agospelling bit
nhmall [Mon, 25 Nov 2019 16:42:24 +0000 (11:42 -0500)]
spelling bit

5 years agofixes catch-up bit
nhmall [Mon, 25 Nov 2019 16:30:21 +0000 (11:30 -0500)]
fixes catch-up bit

5 years agoadd placeholder Cross-compiling file to Top
nhmall [Mon, 25 Nov 2019 16:16:58 +0000 (11:16 -0500)]
add placeholder Cross-compiling file to Top

5 years agoREADME update
nhmall [Mon, 25 Nov 2019 16:12:27 +0000 (11:12 -0500)]
README update

5 years agoRemove vestiges of quest text data file
Pasi Kallinen [Mon, 25 Nov 2019 14:30:54 +0000 (16:30 +0200)]
Remove vestiges of quest text data file

5 years agoFix lua quest data output types
Pasi Kallinen [Mon, 25 Nov 2019 07:21:34 +0000 (09:21 +0200)]
Fix lua quest data output types

...so the texts are given exactly the same way as they were given previously.

5 years agoMerge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into...
nhmall [Mon, 25 Nov 2019 05:51:44 +0000 (00:51 -0500)]
Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7

5 years agolua quest texts
nhmall [Mon, 25 Nov 2019 05:50:16 +0000 (00:50 -0500)]
lua quest texts

5 years agoMerge branch 'paxed-quest-lua' into NetHack-3.7
Pasi Kallinen [Mon, 25 Nov 2019 05:30:51 +0000 (07:30 +0200)]
Merge branch 'paxed-quest-lua' into NetHack-3.7

5 years agomsdos now has its own sysconf as the sys/winnt/sysconf.template had incompatible...
nhmall [Mon, 25 Nov 2019 05:17:16 +0000 (00:17 -0500)]
msdos now has its own sysconf as the sys/winnt/sysconf.template had incompatible entries

5 years agofix a transcription error
nhmall [Mon, 25 Nov 2019 04:42:27 +0000 (23:42 -0500)]
fix a transcription error

5 years agoThis is cron-daily v1-Nov-24-2019. files updated: Files
nhw_cron [Sun, 24 Nov 2019 19:28:34 +0000 (14:28 -0500)]
This is cron-daily v1-Nov-24-2019.  files updated: Files

5 years agoMerge branch 'NetHack-3.7' into paxed-quest-lua
nhmall [Mon, 25 Nov 2019 04:11:30 +0000 (23:11 -0500)]
Merge branch 'NetHack-3.7' into paxed-quest-lua

5 years ago3.7: fix #9397 - pronouns when hallucinating
PatR [Mon, 25 Nov 2019 02:29:14 +0000 (18:29 -0800)]
3.7: fix #9397 - pronouns when hallucinating

Developed for 3.6 but deferred to 3.7.  Most of the testing was with
the earlier incarnation.

Report was that pronouns were accurate for the underlying monsters
when hallucination was describing something random, and also that the
gender prefix flag from bogusmon.txt wasn't being used.  The latter
is still the case, but pronouns are now chosen at random while under
the influence of hallucination.  One of the choices is plural and an
attempt is made to make the monster name and verb fit that usage.

|The homunculus picks up a wand of speed monster.
|The large cats zap themselves with a wand of speed monster!
|The blue dragon is suddenly moving faster.

There is no attempt to match gender for the singular cases; you might
get
|The succubus zaps himself [...]
or
|The incubus zaps herself [...]

5 years ago3.7 build cleanup
PatR [Mon, 25 Nov 2019 01:56:01 +0000 (17:56 -0800)]
3.7 build cleanup

Unix Makefile.utl wasn't aware of the dependency of makedefs.o on
src/mdlib.c so didn't rebuild makedefs when it should have.

Eliminate several warnings:
mdlib.c  - #if inside the arguments to macro Sprintf();
nhlua.c  - nhl_error() ends with a call to lua_error() which doesn't
           return, but neither of them were declared that way;
nhlsel.c - because of the previous, the 'else error' case of
           l_selection_ellipse() led to complaints about uninitialized
   variables;
sp_lev.c - missing 'const'.

I did minimal testing which went ok, but revisiting a couple of levels
gave me un-freed memory allocated by restore.c line 1337.  (I haven't
looked at that at all.)

5 years agoMerge branch 'NetHack-3.7' into paxed-quest-lua
nhmall [Sun, 24 Nov 2019 23:57:46 +0000 (18:57 -0500)]
Merge branch 'NetHack-3.7' into paxed-quest-lua

5 years agoMerge branch 'master' into NetHack-3.7
nhmall [Sun, 24 Nov 2019 23:57:11 +0000 (18:57 -0500)]
Merge branch 'master' into NetHack-3.7

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sun, 24 Nov 2019 23:55:18 +0000 (18:55 -0500)]
Merge branch 'NetHack-3.6'

5 years agoMerge branch 'NetHack-3.6'
nhmall [Sun, 24 Nov 2019 23:51:59 +0000 (18:51 -0500)]
Merge branch 'NetHack-3.6'

5 years agofix #H9462 - segfault with levitation boots
PatR [Sun, 24 Nov 2019 23:33:16 +0000 (15:33 -0800)]
fix #H9462 - segfault with levitation boots

This is similar to the helm of opposite alignment case fixed some
time ago.  Deferring the setting of foo->known until an item is fully
worn (because it used to get set earlier but gave away information if
the wear operation was interrupted) didn't take into account that foo
might end up Null in various circumstances.  So Boots_on() needs to
validate uarmf before setting uarmf->known in case putting on boots
of levitation while on a sink caused them to come right back off.

I put similar validation into all foo_on() just in case (as far as
I'm aware, only Boots_on() and Helmet_on() actually need that).

5 years agomore warnings
nhmall [Sun, 24 Nov 2019 23:01:48 +0000 (18:01 -0500)]
more warnings

5 years agoclean up some macosx build warnings
nhmall [Sun, 24 Nov 2019 22:26:35 +0000 (17:26 -0500)]
clean up some macosx build warnings

5 years agoadd notice
nhmall [Sun, 24 Nov 2019 19:26:46 +0000 (14:26 -0500)]
add notice