Commit Graph
100 Commits
Author SHA1 Message Date
nhmall d98d76a88e fix a potential leak of monst struct in montraits
Resolves #789
2022-06-04 09:33:36 -04:00
nhmall fc0bb9631a synchronize some recent changes between linux.370 and macOS.370 2022-06-03 21:26:21 -04:00
nhmall ff00c14893 wished-for doors in wizmode always vertical
Closes #788
2022-06-03 15:30:18 -04:00
nhmall 0039d332e7 Merge branch 'fix-doorwish-horizontal' of https://github.com/entrez/NetHack into pr788 2022-06-03 15:29:02 -04:00
nhmall dca1cd7526 alter wording in last commit fixes entry 2022-06-02 19:24:52 -04:00
nhmall 6fbc8ccf0f spelling in last fixes message 2022-06-02 19:22:18 -04:00
nhmall 516df172d0 fix message when monster's two-handed weapon welds
K3610 reported to devteam:
When you see a monster wield a cursed two-handed weapon,
the weapon "welds itself to the foo's hand" instead of its "hands."

Observed on hill orcs wielding a cursed two-handed sword.
2022-06-02 19:20:21 -04:00
nhmall 57cfd7e7ed another ncursesw follow-up 2022-06-02 17:14:42 -04:00
nhmall 168ee4c9a8 yet another follow-up for linux.370 ncursesw 2022-06-02 16:31:30 -04:00
nhmall 7b1528707b another follow-up for ncursesw and CURSES_UNICODE
Don't define CURSES_UNICODE without ncursesw being available
2022-06-02 15:26:48 -04:00
nhmall ae1f5b8d2a follow-up on linux.370 ncursesw 2022-06-02 15:10:15 -04:00
nhmall 62014be6f8 use ncursesw on linux for curses support of enhanced1 2022-06-02 14:43:46 -04:00
nhmall 8848a81990 restrict stunning effect to is_xport trap types
The issue first arose in commit 6a65b412.
Reported to devteam via email by entrez.
2022-06-02 09:41:47 -04:00
nhmall 3495d99bc4 Merge branch 'pr782' into NetHack-3.7 2022-06-01 12:41:26 -04:00
nhmall 1b8cadba2b Merge branch 'fix-splev' of https://github.com/argrath/NetHack into pr782 2022-06-01 12:41:00 -04:00
nhmall db86ebd9e7 fixes3-7-0.txt update for pull request 782 2022-06-01 12:40:17 -04:00
nhmall caeac77239 bear trap vanishes when poly'd hero fails to eat
Closes #781
2022-06-01 12:31:32 -04:00
nhmall ae6a622c2b fixes entry 2022-05-31 21:56:40 -04:00
nhmall 7d186332ae attempt to autodetect homebrew and macports
If homebrew is detected, and if the homebrew ncurses package
is installed, the set things up to use it.

Hopefully, this works okay for everyone right away, but it may need
some tweaking.
2022-05-31 08:17:29 -04:00
nhmall 4a8deefaa3 replace leading tabs in several more files 2022-05-30 12:38:22 -04:00
nhmall a8f0e91ddf replace leading tabs in several files 2022-05-30 12:09:35 -04:00
nhmall 81cff2390f typo fix in fixes 2022-05-28 20:39:09 -04:00
nhmall 16c2c3b32f update fixes3-7-0.txt for newcham() changes 2022-05-28 19:48:13 -04:00
nhmall 0ce9d3a1e9 Merge branch 'pr775' into NetHack-3.7 2022-05-28 19:42:21 -04:00
nhmall 9e6ac144b4 switch to using a flag parameter on newcham() 2022-05-28 19:35:48 -04:00
nhmall 67f80848bd Merge branch 'cancel-revert-msg' of https://github.com/copperwater/NetHack into pr775 2022-05-28 19:33:11 -04:00
nhmall 5622a4a848 Merge branch 'pr776' into NetHack-3.7 2022-05-28 13:53:31 -04:00
nhmall 3a23f57ddd Merge branch 'little-fixups' of https://github.com/copperwater/NetHack into pr776 2022-05-28 13:53:12 -04:00
nhmall 5c1e22b337 Merge branch 'pr551' into NetHack-3.7 2022-05-27 16:43:00 -04:00
nhmall 39ecdd6075 writing type-named scrolls pr#551
entrez commented in https://github.com/NetHack/NetHack/pull/551 on Jul 16,
2021:
"When using a marker, it is possible to write a scroll based on the
 type-name assigned to it by the user. Somewhat unintuitively, this
 system broke down if the assigned name was identical to the real name of
 a scroll type: trying to write a scroll by its previously-assigned name
 'scare mon' or 'id' would be guaranteed to succeed, but this wouldn't be
 the case if the user-assigned name was 'scare monster' or 'identify'.

 Revise dowrite(write.c) to prefer a user-assigned type-name to the
 real name of a scroll that isn't already formally known, while
 continuing to prefer the real name of an identified scroll to both."

Closes #551 (Github pull request)

Also,
Closes #436 (Github issue)
2022-05-27 16:41:46 -04:00
nhmall 17fe18d18a Merge branch 'fix-write-named-scroll' of https://github.com/entrez/NetHack into pr551 2022-05-27 16:35:30 -04:00
nhmall 0aba9ff77e restrict a Windows console message to debug 2022-05-27 16:33:22 -04:00
nhmall 6ea2e8e222 Merge branch 'pr659' into NetHack-3.7 2022-05-27 16:16:49 -04:00
nhmall 4d212e9864 Merge branch 'homebrewed-curses' of https://github.com/perryprog/NetHack into pr659 2022-05-27 16:16:25 -04:00
nhmall 947d65a27d Merge branch 'pr773' into NetHack-3.7 2022-05-27 16:08:55 -04:00
nhmall 2af1acce8b mdisplacem stoning and gloves had test backwards
Closes #773
2022-05-27 16:07:27 -04:00
nhmall 0eabe97c4a Merge branch 'mdisplacem-stoning' of https://github.com/entrez/NetHack into pr773 2022-05-27 16:05:17 -04:00
nhmall 3a1d49710c cron daily Guidebook.txt update 2022-05-27 11:39:34 -04:00
nhmall d3ff89f5ec daily cron update to Files 2022-05-27 10:40:33 -04:00
nhmall c414f3a648 manual bump of guidebook date to match last commit 2022-05-27 10:38:54 -04:00
nhmall 9a21e55830 comment update 2022-05-23 13:32:25 -04:00
nhmall 0e9f53a624 oil burning secret door described as spell #771
Closes #771
2022-05-23 13:25:12 -04:00
nhmall 05d628752e warning fix 2022-05-21 21:26:21 -04:00
nhmall 7b506c715c Merge branch 'NetHack-3.7' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.7 2022-05-21 21:22:42 -04:00
nhmall 68d7ef440f follow-up (from entrez) 2022-05-21 21:22:20 -04:00
nhmall f19ccde709 make currently unhandled switch cases apparent 2022-05-21 09:13:02 -04:00
nhmall 441840c737 expand info a wee bit on revive() panic 2022-05-21 09:08:23 -04:00
nhmall 35b56fb94b incorporate the later force push on pr767 2022-05-20 19:45:07 -04:00
nhmall d93f8ebf69 fixes3-7-0.txt entries for pr765 and pr767 2022-05-20 17:59:42 -04:00
nhmall eb49ca7c5a Merge branch 'pr765-767' into NetHack-3.7 2022-05-20 17:41:18 -04:00
nhmall 69a6e1dd01 Merge branch 'makeplural-gateaux' of https://github.com/entrez/NetHack into pr765-767 2022-05-20 17:40:22 -04:00
nhmall b72b70ea99 Merge branch 'fix-pray-goto' of https://github.com/argrath/NetHack into pr765-767 2022-05-20 17:40:04 -04:00
nhmall 95da0beffa fix MSDOS cross-compile
After some Make variables and additional override for CROSS_TO_MSDOS
is required.
2022-05-19 19:53:48 -04:00
nhmall 29236fc22d don't force manual edit of config.h for Lua 5.3.6 and earlier 2022-05-19 19:22:43 -04:00
nhmall 629b5d67a9 fix 'make all' from src directory 2022-05-19 19:00:47 -04:00
nhmall 27119907a7 use updated lua library name in make spotless 2022-05-19 08:18:52 -04:00
nhmall f57555ae6b differentiate lua object library names by Lua ver 2022-05-19 07:44:29 -04:00
nhmall fafe54869d tested newer versions of visual studio
Also fixes a missing ')' typo in Makefile.nmake
2022-05-18 12:17:00 -04:00
nhmall 44c225a11e yet more version buf 2022-05-12 20:10:27 -04:00
nhmall f8b8495144 more version buf 2022-05-12 19:56:16 -04:00
nhmall fe5cb1011f buf sizes in version.c
there were some 'sizeof buf' on a passed pointer variable buf.
pass the actual buffer size in a second argument.
2022-05-12 19:38:50 -04:00
nhmall 66e965f878 Don't include /fsanitize=address in vs 2017
Closes #759
2022-05-12 08:05:28 -04:00
nhmall c5ec3fc248 Xcode project update 2022-05-11 16:38:27 -04:00
nhmall c38e5cba5c correct the qt5 package instructions for ubuntu 2022-05-11 09:47:00 -04:00
nhmall d486270ec9 warning fix 2022-05-10 21:10:02 -04:00
nhmall 6d15142250 fix one more lua file header 2022-05-10 11:30:30 -04:00
nhmall 0602a3b89f update lua file headers 2022-05-10 11:26:52 -04:00
nhmall 6c12b85a0e missed a reference in README 2022-05-09 17:58:26 -04:00
nhmall 4f851e0165 update README to reflect a recent file name change 2022-05-09 17:55:49 -04:00
nhmall 718365cf03 Merge branch 'pr758' into NetHack-3.7 2022-05-09 17:16:30 -04:00
nhmall c87f779755 split getting kick damages into separate function
Closes #758 by argrath
2022-05-09 17:15:31 -04:00
nhmall b53e76813d bump patchlevel 2022-05-09 09:15:17 -04:00
nhmall 4951cca84e Merge branch 'pr757' into NetHack-3.7 2022-05-09 09:06:50 -04:00
nhmall a01a26f0a7 split adjusting attributes into separate function
Closes #757 by argrath
2022-05-09 09:05:58 -04:00
nhmall 81528b2853 Merge branch 'fix-do-wear' of https://github.com/argrath/NetHack into pr757 2022-05-09 09:04:56 -04:00
nhmall 7c2d528202 Merge branch 'pr754' into NetHack-3.7 2022-05-09 09:04:22 -04:00
nhmall 011405a15c split kicking empty space into separate function
Closes #754 by argrath
2022-05-09 09:03:24 -04:00
nhmall c8a866cc14 Merge branch 'fix-kick' of https://github.com/argrath/NetHack into pr754 2022-05-09 09:02:01 -04:00
nhmall 9db8bd93df Merge branch 'pr748' into NetHack-3.7 2022-05-09 08:56:19 -04:00
nhmall d3f98917e9 fixes entry for pr748 2022-05-09 08:55:40 -04:00
nhmall 200302e15f Merge branch 'altarmask-sanctum-bit' of https://github.com/entrez/NetHack into pr748 2022-05-09 08:47:02 -04:00
nhmall 17cb7646c2 follow-up bit in utf8map.c 2022-05-09 07:46:54 -04:00
nhmall 0aaa114a46 rgbstr_to_uint32() -> rgbstr_to_int32()
Closes #756
2022-05-09 07:31:30 -04:00
nhmall 2047d42bc6 regression in process_text_window()
original code:

     if (linestart && (*cp & 0x80) != 0) {
         g_putch(*cp);
         end_glyphout();
         linestart = FALSE;
     } else {
         (void) putchar(*cp);
     }

new code:

    if (linestart) {
        if (SYMHANDLING(H_UTF8)) {
            /* FIXME: what is actually in that line? is it the \GNNNNNNNN or UTF-8? */
            g_putch(*cp);
        } else if ((*cp & 0x80) != 0) {
            g_putch(*cp);
            end_glyphout();
        }
        linestart = FALSE;
    } else {
        (void) putchar(*cp);
    }

The new code didn't output a character if linestart was true and the character did
not have bit 0x80 set.

fixed code:

    if (linestart) {
        if (SYMHANDLING(H_UTF8)) {
            /* FIXME: what is actually in that line? is it the \GNNNNNNNN or UTF-8? */
            g_putch(*cp);
        } else if ((*cp & 0x80) != 0) {
            g_putch(*cp);
            end_glyphout();
        } else {
            (void) putchar(*cp);
        }
        linestart = FALSE;
    } else {
        (void) putchar(*cp);
    }
2022-05-08 20:27:00 -04:00
nhmall b74ba33eed tile.c must match target for crosscompile 2022-05-07 15:06:43 -04:00
nhmall 3101727fc0 more preprocessor and multiplatform cleanup
in wintty.c
2022-05-07 15:00:11 -04:00
nhmall e4f85df216 Revert "some follow-up for MSDOS build"
This reverts commit 36d3b64326.
2022-05-07 14:34:06 -04:00
nhmall 36d3b64326 some follow-up for MSDOS build
The preprocessor directives in win/tty/wintty.c were crossed-up
under MSDOS build. I think I got them straightened out now.

For a crosscompile situation, the tilemap utility (which runs on
the host) needs to produce an output src/tile.c that is compatible
for the target platform.

Don't use ENHANCED_SYMBOLS under MSDOS, for now anyway.
2022-05-07 13:08:02 -04:00
nhmall 0a171bb862 clear a warning during build with vs project
src/nhlua.c(93,16): warning C4324: 'nhl_user_data': structure was padded
due to alignment specifier
2022-05-07 11:34:24 -04:00
nhmall 12773da1b5 Guidebook.txt cron daily update 2022-05-07 11:27:05 -04:00
nhmall eb802a8371 Visual studio project updates 2022-05-07 11:19:59 -04:00
nhmall 47b2eb29c1 Clean up CI build for Windows 2022-05-07 11:00:13 -04:00
nhmall 4b7c547dcd trailing blank removal 2022-05-07 10:40:21 -04:00
nhmall cb0c21e91d ENHANCED_SYMBOLS
A new feature, enabled by default to maximize testing, but one which can
be disabled by commenting it out in config.h

With this, some additional information is added to the glyphmap entries
in a new optional substructure called u with these fields:
    ucolor          RGB color for use with truecolor terminals/platforms.
                    A ucolor value of zero means "not set." The actual
                    rgb value of 0 has the 0x1000000 bit set.
    u256coloridx    256 color index value for use with 256 color
                    terminals, the closest color match to ucolor.
    utf8str         Custom representation via utf-8 string (can be null).

There is a new symset included in the symbols file, called enhanced1.

Some initial code has been added to parse individual
OPTIONS=glyph:glyphid/R-G-B entries in the config file.

The glyphid can, in theory, either be an individual glyph (G_* glyphid)
for a single glyph, or it can be an existing symbol S_ value
(monster, object, or cmap symbol) to store the custom representation for
all the glyphs that match that symbol.

Examples:
   OPTIONS=glyph:G_fountain/U+03A8/0-150-255

(Your platform/terminal font needs to be able to include/display the
character, of course.)

The NetHack core code does parsing and storing the customized
entries, and adding them to the glyphmap data structure.

Any window port can utilize the additional information in the glyphinfo
that is passed to them, once code is added to do so.

Also, consolidate some symbol-related code into symbols.c, and remove it from
files.c and options.c
2022-05-07 10:25:13 -04:00
nhmall 721b1cc9b9 unreferenced local variable warning 2022-05-04 08:48:56 -04:00
nhmall 308dce273d warning bits on Windows build
src/nhlua.c(1606): warning C4127: conditional expression is constant
src/nhlua.c(2032): warning C4127: conditional expression is constant
2022-05-01 12:18:45 -04:00
nhmall 281d959b8b revisit Qt6 macOS QSoundEffect
- After reverting previous related commit, add the QtMultimedia folder to
the include search path as suggested by PatR, and leave qt_bind.cpp alone
2022-04-27 19:06:06 -04:00
nhmall 75f3008123 Revert "Qt6 QSoundEffect on macOS"
This reverts commit f6149904c3.
2022-04-27 19:00:18 -04:00
nhmall f6149904c3 Qt6 QSoundEffect on macOS 2022-04-27 13:56:01 -04:00
nhmall 43158982c3 consolidate two fixes entries for QSoundEffect 2022-04-27 08:40:02 -04:00