Permalink
Commits on Dec 17, 2016
  1. Makefile.top: remove problematic 'check-dlb' target

    Just do 'dlb' instead. This thing was racing a lot with the yacc builds,
    causing build failures with 'make -jN'
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Dec 17, 2016
Commits on May 4, 2016
  1. sfmt: mark functions as static

    This reduces the compiled size of rnd.c, as a bunch of possible exports get
    eliminated.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 4, 2016
  2. util: .gitignore rngstream/roll binaries

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 4, 2016
  3. Makefile.utl: add rngstream to cleanup

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 4, 2016
  4. rnd.c: reseed every 2M iterations

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 4, 2016
  5. sfmt: add AVX2 implementation

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 4, 2016
Commits on Apr 30, 2016
  1. Fix a crash in tty windowport

    root committed with Oct 30, 2012
  2. Merge branch 'hidden'

    Adding the NAO options to highlight hidden dungeon features or objects.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  3. implement "hilite_obj_piles"

    From NAO tree: will show item piles with blue background.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  4. implement option "hilite_hidden_stairs"

    From NAO tree: will show item with red background if the stairs are under it.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  5. Merge branch 'msgtype'

    Adding the MSGTYPE and msgtype_regex features.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  6. add msgtype_regex option

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  7. add new MSGTYPE option

    Add a new configuration option MSGTYPE
    
    This allows the user to configure whether a message always waits for --more--,
    or if it's never shown, or if it's never shown more than once in row.
    
    The format is
    
        MSGTYPE=foo "string to match"
    
    Where "foo" is one of "hide", "stop", "norep" or "show", and the string to
    match is a message to be matched, with '*' and '?' wildcard expansion.
    
        "hide" hides the message, so it's never shown.
        "stop" always prompts for --more-- after the message.
        "norep" shows the message, but not again if no other message is shown in between.
        "show" always shows the message.
    
        ("noshow" is an alias to "hide", and "more" is an alias to "stop")
    
    For example:
    
        # displacing pets
        MSGTYPE=hide "You displaced *"
        # items on floor
        MSGTYPE=norep "You see here a *"
        MSGTYPE=norep "You see here an *"
        # delayed instadeaths
        MSGTYPE=stop "You are slowing down."
        MSGTYPE=stop "You find it hard to breathe."
        MSGTYPE=stop "You are turning a little *"
    
    Imported from https://bilious.alt.org/?397
    
    Signed-off-by: Pasi Kallinen <paxed@alt.org>
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  8. ncurses: use more pleasant colors for window borders

    Not sure who decided CLR_MAGENTA was a good choice. :)
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  9. ncurses: support hitting ESC to abort a text entry prompt

    For example, when #naming an item, we want ESC to mean the same thing as
    hitting Enter on an empty string. This better matches the TTY version's
    behavior.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
  10. ncurses: fix 'dark gray' rendering as solid black

    I found an orcish helmet, which should have rendered as a gray '[', but instead
    rendered as a solid black box. It appears that the custom color setup for
    CURSES_DARK_GRAY is borked somehow, so just do what the TTY version does: use
    bold black, which creates a grayish color instead.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 30, 2016
Commits on Apr 22, 2016
  1. winnt: fix build on modern Windows SDK

    Newer Windows SDKs lack the win32.mak file, and the _USE_32BIT_TIME_T thing is
    now deprecated.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 22, 2016
  2. .gitignore: ignore editor-generated backup files

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 22, 2016
  3. src/explode.c: avoid compile failure on Windows

    On Windows, 'expl' is defined as a function in math.h. Just rename the
    variable.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 22, 2016
  4. dice roller: correctly break on EOF

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 21, 2016
  5. add tool for streaming RNG outputs

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 21, 2016
  6. rnd.c: use cryptographically secure PRNG

    Replaces the standard libc PRNG used in NetHack with the cryptographically
    secure SIMD-oriented Fast Mersenne Twister (SFMT) PRNG. It seeds this PRNG
    using the system entropy sources: /dev/random on generic UNIX, /dev/urandom on
    Linux, and CryptGenRandom on Windows.
    
    This patch is useful if you have a NetHack server and don't want your players
    to crack the default PRNG (shown to be easily breakable).
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    
    use SFMT rng
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 21, 2009
Commits on Apr 21, 2016
  1. import SFMT 1.4.1 codebase

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 21, 2016
  2. Revert "implement Ivy Bridge RDRAND support"

    This reverts commit 7a9894c.
    committed Apr 21, 2016
Commits on Apr 19, 2016
  1. Makefile.src: support -flto=jobserver

    Need to invoke $(LINK) with + in front of it for -flto=jobserver to work.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 19, 2016
  2. Makefile.utl: default to bison/flex

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 19, 2016
Commits on Apr 19, 2015
  1. ensure sizeof(nul) is > sizeof(struct fruit)

    Otherwise we overflow the buffer when writing out nulls. This is not a great
    fix because any other user of 'nulls'/'nul' could run into the same issue. But
    there are only two cases in save.c that use 'nulls'.
    
    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 19, 2015
  2. avoid buffer overflow when loading user's fruit settings

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Apr 19, 2015
Commits on Jan 14, 2015
  1. Makefile.top: ensure 'all' target is default

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed Jan 14, 2015
Commits on May 16, 2013
  1. correctly declare 'main' functions with argument type specifiers

    Signed-off-by: Steven Noonan <steven@uplinklabs.net>
    committed May 16, 2013
  2. Fix segfault when MD termcap not defined.

    root committed with Mar 17, 2012
  3. quiver_fired boolean option (Jukka Lahtinen)

    root committed with Oct 30, 2011