Commit Graph
100 Commits
Author SHA1 Message Date
nhmall 8a8f39d2b5 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-07 20:05:02 -05:00
nhmall cdb9b9ebd7 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-05 21:53:19 -05:00
nhmall 416deebb55 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-04 21:39:53 -05:00
nhmall 481a397c14 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-04 20:54:05 -05:00
nhmall 2b6b4c0833 fixes entry for amiga fix
Also, a pull request 175 showed up after the earlier commit for the missing
continuation lines, so mark the pull request as closed.

closes #175
2019-02-04 20:27:18 -05:00
nhmall a2a4f66318 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-04 20:05:28 -05:00
nhmall ba030ade7b Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01 2019-02-04 20:04:59 -05:00
nhmall 7042e5fdef another contributed Amiga bit, missing line continuations in Makefile 2019-02-04 20:02:53 -05:00
nhmall f1c91dbd75 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-04 18:37:15 -05:00
nhmall f38dca7cb1 variable moved to context long ago
just reported, a variable moved to context long ago
2019-02-04 18:35:17 -05:00
nhmall 89749c0fa2 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-03 17:28:27 -05:00
nhmall a60d1bec5b Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-02 21:09:23 -05:00
nhmall 8cb9d45ab6 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-02-01 19:23:44 -05:00
nhmall 7f0eabbcd2 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-31 19:56:38 -05:00
nhmall 4de4155998 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-31 19:29:55 -05:00
nhmall ed79141463 Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01 2019-01-31 18:22:55 -05:00
nhmall c456b313a7 Revert "adjust sample config file when STATUS_HILITES isn't defined"
This reverts commit 03e6c26af6.
2019-01-31 13:03:00 -05:00
nhmall d9f2d0c622 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-30 23:11:49 -05:00
nhmall 6e0d55dfbc rng bit 2019-01-30 11:08:11 -05:00
nhmall 446b0e69d5 add a descriptive comment to integer.h 2019-01-30 08:30:02 -05:00
nhmall 02532667a9 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-29 22:33:18 -05:00
nhmall f2071a66f7 fix a likely typo/transcription error in integer.h 2019-01-29 22:12:09 -05:00
nhmall c598da8de4 fix build
../sys/unix/unixmain.c: In function ‘sys_random_seed’:
../sys/unix/unixmain.c:779:29: error: expected expression before ‘long’
         fread(&seed, sizeof long, 1, fptr);
2019-01-29 20:29:56 -05:00
nhmall d32b2c8188 Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01 2019-01-29 20:03:21 -05:00
nhmall f7b6723053 update the long version info generated by makedefs 2019-01-29 20:01:31 -05:00
nhmall dec463d2f5 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-29 17:23:03 -05:00
nhmall ccc14a038b more window port code uses of obj_to_glyph() 2019-01-29 17:21:55 -05:00
nhmall f935331285 try fix for Qt4 using a core macro
../win/Qt4/qt4inv.cpp:41:26: error: macro "obj_to_glyph" requires 2 arguments, but only 1 given
  glyph=obj_to_glyph(nhobj);
                          ^
../win/Qt4/qt4inv.cpp: In member function ‘void nethack_qt4::NetHackQtInvUsageWindow::drawWorn(QPainter&, obj*, int, int, bool)’:
../win/Qt4/qt4inv.cpp:41:8: error: ‘obj_to_glyph’ was not declared in this scope
  glyph=obj_to_glyph(nhobj);
        ^
2019-01-29 17:07:00 -05:00
nhmall 97fdc3f3e4 build bits - mostly for Windows
Allow sys/share/random.c to be included in the build
always, even if USE_ISAAC64 is defined, by making most
of its contents conditional in that case.

That avoids Makefile tinkering when going back and
forth between USE_ISAAC64 and not during testing.
2019-01-29 11:31:41 -05:00
nhmall 9d2764b795 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-29 09:27:17 -05:00
nhmall af42273b02 fixes36.2 update for added isaac64 prng 2019-01-29 07:38:57 -05:00
nhmall d9a2c572f5 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-29 07:22:23 -05:00
nhmall 57f03eca1b Merge branch 'alex-and-isaac' into NetHack-3.6.2-beta01 2019-01-29 07:20:17 -05:00
nhmall 54062e0ad6 include the rnd.c bits 2019-01-28 19:54:18 -05:00
nhmall 457e4b68aa merge Alex's dual rng proposal with the isaac64 rng code and adjust
This is branched from Alex's hallu-rng-stability branch,
with two build corrections (detect.c, zap.c), and merged
with  the isaac64 branch that we have ready to go.

Alex's dual rng is supported by setting up the array
of multiple isaac64 contexts.

I stuck with Alex's approach of passing the rng function
name around as the parameter (rng or rn2_on_display_rng)
for the new additional parameter needed for
set_random(), init_random(), reseed_random(),
and init_isaac64().
2019-01-28 19:43:55 -05:00
nhmall 819ee796f2 Merge branch 'countermeasures' into alex-and-isaac 2019-01-28 18:37:50 -05:00
nhmall 542019d31e Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-28 16:36:23 -05:00
nhmall 3108b18ea5 Merge branch 'countermeasures' of https://rodney.nethack.org:20040/git/NHsource into countermeasures 2019-01-28 09:45:31 -05:00
nhmall f53d02f0bb Windows build bit 2019-01-28 09:44:35 -05:00
nhmall 22f8d864e2 ntconf.h ensure Rand is always something
order of preference:
USE_ISAAC64
RANDOM
C routine
2019-01-28 10:32:57 +01:00
nhmall c1327142b5 detect DEV_RANDOM fopen failure and fall back, noting it in paniclog 2019-01-28 10:32:57 +01:00
nhmall 0aa4d62a2c detect rng seed strength at runtime based on algorithm not compile time based on platform features 2019-01-28 10:32:57 +01:00
nhmall 0a430cab11 every platform provides sys_random_seed() and SYS_RANDOM_SEED goes away 2019-01-28 10:32:57 +01:00
nhmall 3f609bf9ad define Rand() in isaac4 config
Rand() was typically defined to random() or to rand().

gcc seems to provide a random() to link to on linux
when sys/share/random.c is linked in, but other platforms
such as Windows got an undefined refence to random()
when RANDOM wasn't defined.

The only direct use seems to be in get_rnd_txt() these
days, in rumors.c

Under the USE_ISAAC64 config, neither srandom()
nor srand() are being invoked to seed those routines,
and it really should be using isaac64 when USE_ISAAC64
is defined anyway.
2019-01-28 10:02:09 +01:00
nhmall 6c114640f5 some system-specific adjustments for RNG routines
move some system-specific seed-related stuff from hacklib.c to
a system-specific source file and #define SYS_RANDOM_SEED to
utilize it during build.

Windows changes for random seed generation using
crypto next gen (CNG) api routines.

Corresponding vms changes due to disentangling of VMS and
unix when the unix seed bits got moved (untested).
2019-01-28 10:02:08 +01:00
nhmall 1083971228 Merge branch 'NetHack-3.6.2-beta01' of https://rodney.nethack.org:20040/git/NHsource into NetHack-3.6.2-beta01 2019-01-27 19:22:28 -05:00
nhmall f57693a47e simplify and correctly locate fixes entry 2019-01-27 19:16:55 -05:00
nhmall fd92ecf74a Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-27 12:08:05 -05:00
nhmall 55fdfb9200 domove_core() out of domove(); assess domove_core() results
new domove_core() assessment results

potentially smudge engravings

Proceed to wipe engraving after domove_core() now, but only under
all of the following conditions:
    - you can reach the floor
    - preceding domove_core() move attempt was marked as
      having succeeded in domove_core()
    - there is actually an engraving there to impact at
      your original spot, or your new spot, or both
2019-01-27 11:55:23 -05:00
nhmall 5e165df44e Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-25 21:07:40 -05:00
nhmall 186ed77d40 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-24 07:55:27 -05:00
nhmall 434bb08bef Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-23 00:38:47 -05:00
nhmall cd43f4b462 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-22 06:12:00 -05:00
nhmall b5504c27e0 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-21 06:47:20 -05:00
nhmall a6c290399b Windows warning fix 2019-01-19 11:04:26 -05:00
nhmall affe4a1bc5 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-18 18:50:51 -05:00
nhmall f05ce051e3 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-16 20:04:03 -05:00
nhmall 60129c524a Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-14 21:20:24 -05:00
nhmall e741157671 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-14 21:09:27 -05:00
nhmall c71c64144d Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-14 18:09:26 -05:00
nhmall 7e511d50c2 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-12 21:21:42 -05:00
nhmall 135b7c5c04 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-12 01:08:58 -05:00
nhmall da1d62f9a1 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-10 22:45:41 -05:00
nhmall 9641864861 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-10 09:26:27 -05:00
nhmall 580a6ab9c1 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-09 09:22:29 -05:00
nhmall 624aee7749 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-09 06:21:59 -05:00
nhmall dba8ce7c07 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-08 18:30:04 -05:00
nhmall 4f11a122c9 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-07 18:13:22 -05:00
nhmall 2e80de0646 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-06 10:55:37 -05:00
nhmall a95d0bd359 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-05 10:23:24 -05:00
nhmall a318908944 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-04 22:45:19 -05:00
nhmall d0e1545657 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-03 11:17:33 -05:00
nhmall 4010f4d91d Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-01 19:51:05 -05:00
nhmall 194fd65a4b Merge branch 'cron-NetHack-3.6.2-beta01' into NetHack-3.6.2-beta01 2019-01-01 19:50:17 -05:00
nhmall ed2f2cc575 README update 2019-01-01 17:56:21 -05:00
nhmall cb25676c43 update for 2019 2019-01-01 11:48:30 -05:00
nhmall d60cd7200e Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2019-01-01 08:37:01 -05:00
nhmall c2777860e9 incorrect header 2018-12-30 22:02:42 -05:00
nhmall af9d36b562 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-30 21:41:30 -05:00
nhmall 31c4a3fca4 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-30 08:01:30 -05:00
nhmall 83e8033f72 remove curses date.h dependency in Windows Makefiles 2018-12-30 07:58:39 -05:00
nhmall 367ad8de51 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-29 12:36:19 -05:00
nhmall eed7c4bdd1 nttty topten output processing
switch back to using the safe routines
after tty port exits on Windows console
tty port.

Fixes H7758
1613
2018-12-29 12:26:33 -05:00
nhmall f1bce74af6 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-29 08:46:43 -05:00
nhmall 8235825883 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-28 12:56:44 -05:00
nhmall fc504dfa89 yet more Windows Makefile
Now that the dependency lines are corrected for the
correct output files in the Makefile, it revealed a
dependency on a non-existent file.
2018-12-28 12:51:11 -05:00
nhmall f3004a8973 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-28 12:37:56 -05:00
nhmall be67656932 More Windows Makefile corrections 2018-12-28 12:34:41 -05:00
nhmall 1cdb9c561c Windows Makefile updates 2018-12-28 12:29:12 -05:00
nhmall 599d4f3063 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-28 10:20:47 -05:00
nhmall a5f154d925 a couple of source spelling consistencies for /*FALLTHRU*/ 2018-12-28 10:08:56 -05:00
nhmall 47ef36c3d8 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-28 09:42:20 -05:00
nhmall 067379b896 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-28 08:29:26 -05:00
nhmall 50f55e92c0 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-27 22:44:16 -05:00
nhmall 57ff5c179d Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-27 17:37:34 -05:00
nhmall ae02682cd1 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-27 17:26:56 -05:00
nhmall 43906fe70b Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-26 12:20:14 -05:00
nhmall ed6ff9ce82 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-25 22:06:23 -05:00
nhmall 54fef9e737 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-25 16:53:40 -05:00
nhmall fcfb748876 Merge branch 'NetHack-3.6.2-beta01' into NetHack-3.6.2 2018-12-25 16:26:49 -05:00