]> granicus.if.org Git - nethack/log
nethack
9 years agofix "bad fruit #0"
PatR [Sun, 19 Apr 2015 03:18:43 +0000 (20:18 -0700)]
fix "bad fruit #0"

When minimal_xname() set up a dummy object containing as few details
as possible, it wasn't setting up the fruit id field, so xname()
couldn't figure out what type of fruit it had and issued a warning.

I haven't managed a test case that uses minimal_xname so testing of
the fix is less than comprehensive.  [Pasi got it through dopay, but
that only resorts to minimal_xname if the formatted name is really
long and would otherwise cause the shopkeeper's prompt to overflow.
Long fruit name combined with long individual object name wasn't
long enough to trigger that.  Maybe uncursed, greased, rustproof
the like, or possibly just a longer shopkeeper name than I had?]

9 years agorevisit the forcefight crash fix
PatR [Sun, 19 Apr 2015 03:02:40 +0000 (20:02 -0700)]
revisit the forcefight crash fix

The previous fix prevents the crash from 'the()' when NO_GLYPH was
used as an index into the defsyms array, but it resulted in giving
feedback of "you attack thin air" regardless of what was at the
target location, reverting to the situation that the buggy code was
attempting to address in the first place.  Handle that differently
by removing the unseen monster glyph sooner.  Also, the underwater
handling wasn't working as intended.

I blamed Derek's pudding farming patch for introducing the problem,
but all that did was replace the offending line(s) with different
indentation.  The older post-3.4.3 patch which produced the problem
was mine.  Sorry, Derek.

9 years agorevert unneeded lookat() change
PatR [Sun, 19 Apr 2015 01:50:38 +0000 (18:50 -0700)]
revert unneeded lookat() change

The enclosing switch statement is only reached when `glyph_is_cmap' is
known to be true, so remove the redundant extra test.

9 years agosuggested booktribute mods
nhmall [Sat, 18 Apr 2015 21:45:27 +0000 (17:45 -0400)]
suggested booktribute mods
 Changes to be committed:
modified:   include/extern.h
modified:   src/files.c
modified:   src/objects.c
modified:   src/spell.c

- charge a little more.
- no free read in the bookstore.

9 years agoprevent a couple of reported array index segfaults
nhmall [Sat, 18 Apr 2015 19:29:37 +0000 (15:29 -0400)]
prevent a couple of reported array index segfaults
 Changes to be committed:
modified:   src/hack.c
modified:   src/pager.c

Don't use glyph_to_cmap as an array index into
the defsyms[] array unless it really is a cmap.

Recent situation: glyph_to_cmap will return
NO_GLYPH for the unknown monster glyph 'I', which
is not a valid index for the defsyms[] array.

9 years agoAllow wishing for polearm or hammer
Pasi Kallinen [Sat, 18 Apr 2015 14:25:52 +0000 (17:25 +0300)]
Allow wishing for polearm or hammer

which gives a random weapon with the matching skill,
so a random polearm, or a war hammer, respectively.

9 years agoFix saving xlogfile realtime
Pasi Kallinen [Fri, 17 Apr 2015 07:35:05 +0000 (10:35 +0300)]
Fix saving xlogfile realtime

9 years agoadd an initializer
nhmall [Fri, 17 Apr 2015 04:46:54 +0000 (00:46 -0400)]
add an initializer

9 years agoprotect against bad dates
nhmall [Fri, 17 Apr 2015 04:31:22 +0000 (00:31 -0400)]
protect against bad dates

A recent fault on mingw32 revealed that faulty
code which passes a bad or out-of-range date
value could have game-fatal consequences.
Add some protection.

9 years agodate verification
nhmall [Fri, 17 Apr 2015 04:12:53 +0000 (00:12 -0400)]
date verification

9 years agoPrevent divide by zero in newman
Pasi Kallinen [Wed, 15 Apr 2015 18:05:42 +0000 (21:05 +0300)]
Prevent divide by zero in newman

...which happened when your max power was 0

9 years agoPrevent illegal positions for tmp_at
Pasi Kallinen [Wed, 15 Apr 2015 17:35:48 +0000 (20:35 +0300)]
Prevent illegal positions for tmp_at

It seems like m_throw() can call tmp_at() with !isok coordinates,
so prevent those in both functions

9 years agoPrevent infinite loop
Pasi Kallinen [Wed, 15 Apr 2015 17:06:38 +0000 (20:06 +0300)]
Prevent infinite loop

...if the map is filled with monsters, and for some reason
the drowning just won't kill you.

Infinite looping cannot currently happen, because no-one who
can drown can keep surviving the drowning once their amulet
of life saving is used up.

9 years agoPrevent out-of-bounds coords when closing a door
Pasi Kallinen [Wed, 15 Apr 2015 16:43:32 +0000 (19:43 +0300)]
Prevent out-of-bounds coords when closing a door

9 years agoPrevent segfault when looking around inside monster
Pasi Kallinen [Wed, 15 Apr 2015 14:06:39 +0000 (17:06 +0300)]
Prevent segfault when looking around inside monster

A recent change by me introduced a segfault when
counting swallowed hero as a monster inventory item.

9 years agoMove triplicate defines into single place
Pasi Kallinen [Tue, 14 Apr 2015 17:33:30 +0000 (20:33 +0300)]
Move triplicate defines into single place

9 years agoYAFM for magic flute
Pasi Kallinen [Tue, 14 Apr 2015 17:04:46 +0000 (20:04 +0300)]
YAFM for magic flute

9 years agoUnify description of hero's visage into single function
Pasi Kallinen [Tue, 14 Apr 2015 16:41:44 +0000 (19:41 +0300)]
Unify description of hero's visage into single function

9 years agoSinks may be teleported or polymorphed by rings
Pasi Kallinen [Tue, 14 Apr 2015 16:21:32 +0000 (19:21 +0300)]
Sinks may be teleported or polymorphed by rings

Original patches by Leon Arnott and me.

9 years agoGuard against merge segfaults
Pasi Kallinen [Tue, 14 Apr 2015 05:55:43 +0000 (08:55 +0300)]
Guard against merge segfaults

Trying to throw a quivered object resulted in a segfault, when
the code tried to merge the quivered object into itself.

9 years agoYAFM for dragon sitting on gold
Pasi Kallinen [Tue, 14 Apr 2015 05:45:29 +0000 (08:45 +0300)]
YAFM for dragon sitting on gold

9 years agolint bits
PatR [Tue, 14 Apr 2015 00:50:17 +0000 (17:50 -0700)]
lint bits

9 years agoregex lint
PatR [Tue, 14 Apr 2015 00:21:59 +0000 (17:21 -0700)]
regex lint

For the POSIX regexp interface, move local declaration to beginning
of block to avoid requiring C99.  Also switch to alloc() from bare
malloc() so that MONITOR_HEAP won't log a free which doesn't match
up to any allocation.  This results in a change in behavior:  if
the allocation fails, nethack will panic rather than report an
option parsing error.  In practice there will be no difference
because nethack is not going to run out of dynamic memory during
initial options processing.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Mon, 13 Apr 2015 23:33:26 +0000 (19:33 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agonhsub: handle git add/commit options that take an argument
keni [Mon, 13 Apr 2015 23:32:51 +0000 (19:32 -0400)]
nhsub: handle git add/commit options that take an argument

9 years agoAdd Auto open doors -patch
Pasi Kallinen [Mon, 13 Apr 2015 17:49:38 +0000 (20:49 +0300)]
Add Auto open doors -patch

9 years agoInaccessible niches occasionally have iron bars
Pasi Kallinen [Mon, 13 Apr 2015 16:50:54 +0000 (19:50 +0300)]
Inaccessible niches occasionally have iron bars

9 years agoSome monsters can eat through iron bars
Pasi Kallinen [Mon, 13 Apr 2015 16:36:49 +0000 (19:36 +0300)]
Some monsters can eat through iron bars

Any monster with rusting or corrosion attack can eat through
the bars. This includes rust monsters, grey oozes, and black puddings.

Original patch by Malcolm Ryan

9 years agoA camera may contain a picture-painting demon
Pasi Kallinen [Mon, 13 Apr 2015 15:54:20 +0000 (18:54 +0300)]
A camera may contain a picture-painting demon

Original patch by Leon Arnott

9 years agoAdd litmus test
Pasi Kallinen [Mon, 13 Apr 2015 15:30:49 +0000 (18:30 +0300)]
Add litmus test

Original patch by Dylan O'Donnell

9 years agoUse our dupstr instead of strdup
Pasi Kallinen [Mon, 13 Apr 2015 07:07:12 +0000 (10:07 +0300)]
Use our dupstr instead of strdup

9 years agoFix gitignored
Pasi Kallinen [Mon, 13 Apr 2015 05:30:47 +0000 (08:30 +0300)]
Fix gitignored

9 years agomore regex integration bits
nhmall [Sun, 12 Apr 2015 17:27:36 +0000 (13:27 -0400)]
more regex integration bits

9 years agoMakefile bit following merge
nhmall [Sun, 12 Apr 2015 16:16:59 +0000 (12:16 -0400)]
Makefile bit following merge

9 years agoAdd some new files to top level Files
nhmall [Fri, 10 Apr 2015 23:24:06 +0000 (19:24 -0400)]
Add some new files to top level Files

9 years agoadd cppregex.cpp to NetHackW so it'll link properly
Derek S. Ray [Fri, 10 Apr 2015 22:33:12 +0000 (18:33 -0400)]
add cppregex.cpp to NetHackW so it'll link properly

9 years agoAdd POSIX implementation of regex.
Sean Hunt [Thu, 9 Apr 2015 14:38:15 +0000 (10:38 -0400)]
Add POSIX implementation of regex.

This also includes documentation of the regex engine in posixregex.c,
because I couldn't think of anywhere better to put it.

9 years agoCatch regex matching errors to avoid crashing.
Sean Hunt [Fri, 3 Apr 2015 20:25:17 +0000 (16:25 -0400)]
Catch regex matching errors to avoid crashing.

9 years agoUse extern.h for regexes.
Sean Hunt [Fri, 3 Apr 2015 19:08:29 +0000 (15:08 -0400)]
Use extern.h for regexes.

I was planning to do this anyway, but it created an include loop that
was breaking it on Windows.

9 years agoImplement a new system-based matching harness.
Sean Hunt [Fri, 3 Apr 2015 18:07:53 +0000 (14:07 -0400)]
Implement a new system-based matching harness.

The intent is to look for platform-specific facilities for regex
matching, to provide portable MENUCOLORS configuration files.

This is a prototype implementation being committed to see if Windows can
use the POSIX regex implementation provided with the C++11 standard
library. If this works, I will write a harness for POSIX regexes and for
pmatch(), and those can be linked in by platforms as appropriate.

pmatch() should be used only as a very last resort, because it breaks
compatibility between platforms.

9 years agoDocument wallification changes.
Sean Hunt [Fri, 10 Apr 2015 23:11:47 +0000 (19:11 -0400)]
Document wallification changes.

9 years agotribute post-merge smoothing
nhmall [Sun, 12 Apr 2015 14:31:26 +0000 (10:31 -0400)]
tribute post-merge smoothing
 Changes to be committed:
modified:   src/mon.c
modified:   win/share/objects.txt

9 years agoMerge branch 'master' into nhmall-booktribute
nhmall [Sun, 12 Apr 2015 14:02:17 +0000 (10:02 -0400)]
Merge branch 'master' into nhmall-booktribute

Conflicts:
doc/fixes35.0
include/extern.h
src/mkobj.c
src/mon.c
src/objnam.c
win/share/objects.txt

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 12:58:16 +0000 (08:58 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoMore Guidebook
nhmall [Sun, 12 Apr 2015 12:57:41 +0000 (08:57 -0400)]
More Guidebook
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

9 years agorevised menu searching
PatR [Sun, 12 Apr 2015 08:48:01 +0000 (01:48 -0700)]
revised menu searching

Convert search in tty menus from pmatch to case-insensitive pmatchi;
convert search in X11 menus from substring strstri to wildcard pmatchi.

tty bug:  if the menu is full screen, the search prompt and subsequent
user input clobbers the menu header.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 12 Apr 2015 04:34:06 +0000 (00:34 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agowindows team update
nhmall [Sun, 12 Apr 2015 04:33:30 +0000 (00:33 -0400)]
windows team update

9 years agonew pmatch variations
PatR [Sun, 12 Apr 2015 02:39:59 +0000 (19:39 -0700)]
new pmatch variations

Add pmatchi() to perform case-insensitive wildcard matching, and
pmatchz() which is also case-insensitive and ignores spaces, dashes,
and underscores like the type of matching done during wish parsing.
At the moment, neither is being used, although DEBUGFILES handling
uses pmatch and needs to be taught to distinguish between case-
sensitive and case-insensitive filenames so will eventually use
pmatchi when appropriate.

9 years agocolor of mithril armor
PatR [Sun, 12 Apr 2015 01:51:03 +0000 (18:51 -0700)]
color of mithril armor

From a bug report two years ago, mithril armor should have color
HI_SILVER rather than HI_METAL.  Tolkien describes mithril as "like
silver which never tarnishes".  (The bug report had a more precise
quote, and a github URL for a patch which I've ignored.)  The Amulet
of Yendor has material set to MITHRIL but I haven't changed its color.
All amulets are HI_METAL, so if any modification is needed for it,
change the material rather than the color.

Mithril-coats are displayed as cyan both before and after this patch,
so it's hard to tell whether any change actually happened.

9 years agoFiles correction
nhmall [Sun, 12 Apr 2015 01:07:02 +0000 (21:07 -0400)]
Files correction

9 years agotext file error corrections
nhmall [Sun, 12 Apr 2015 01:02:11 +0000 (21:02 -0400)]
text file error corrections
 Changes to be committed:
modified:   DEVEL/code_features.txt
modified:   Files
modified:   dat/history

On 4/11/2015 6:45 PM, Dion Nicolaas wrote:
> Errors in text files:
> - DEVEL/code_features.txt, line 10: 'alterting' should be 'alerting'

fixed

> - dat/history: Is it intentional that I'm no longer mentioned as
> maintaining the Windows port? I am for 3.4, but not for 3.6.

fixed

> - Files: The Files file is incomplete. Notably, the new files in dat/
> are missing (bogusmon.txt, engrave.txt, epitaph.txt),

fixed

> the DEVEL directory, doc/Guidebook.*

> - Some files in Files have the wrong case: NetHack.sln,
> NetHackW.vcxproj. I know it doesn't matter on windows but it looks wrong.

fixed

9 years agoAllow disabling savefile UID checking in sysconf
Pasi Kallinen [Sat, 11 Apr 2015 18:07:57 +0000 (21:07 +0300)]
Allow disabling savefile UID checking in sysconf

9 years agoFix comment typo
Pasi Kallinen [Sat, 11 Apr 2015 17:45:37 +0000 (20:45 +0300)]
Fix comment typo

9 years agoobj_nexto_xy lint
PatR [Sat, 11 Apr 2015 01:31:11 +0000 (18:31 -0700)]
obj_nexto_xy lint

9 years agorestore accidentally consumed tmp_config
Derek S. Ray [Fri, 10 Apr 2015 22:18:05 +0000 (18:18 -0400)]
restore accidentally consumed tmp_config

9 years agoturn off annoying warnings in Visual Studio
Derek S. Ray [Fri, 10 Apr 2015 21:14:41 +0000 (17:14 -0400)]
turn off annoying warnings in Visual Studio

9 years agolock MENU_COLOR_REGEX away since it isn't Win32 yet
Derek S. Ray [Fri, 10 Apr 2015 21:08:31 +0000 (17:08 -0400)]
lock MENU_COLOR_REGEX away since it isn't Win32 yet

9 years agoMerge branch 'master' into derek-farming
Derek S. Ray [Fri, 10 Apr 2015 20:56:30 +0000 (16:56 -0400)]
Merge branch 'master' into derek-farming

Reverse merge before final reintegration.

* master: (40 commits)
  Fix magic mapped dark room symbols
  Disclose extinct species alongside genocided ones
  ...

Conflicts:
doc/fixes35.0
src/do.c
src/files.c
src/invent.c
src/objnam.c
sys/share/pcmain.c

9 years agoFix magic mapped dark room symbols
Pasi Kallinen [Fri, 10 Apr 2015 19:43:13 +0000 (22:43 +0300)]
Fix magic mapped dark room symbols

9 years agoDisclose extinct species alongside genocided ones
Pasi Kallinen [Fri, 10 Apr 2015 18:59:45 +0000 (21:59 +0300)]
Disclose extinct species alongside genocided ones

9 years agoFix warnings, unused and shadowed variables
Pasi Kallinen [Fri, 10 Apr 2015 17:55:24 +0000 (20:55 +0300)]
Fix warnings, unused and shadowed variables

9 years agoCast time_t into unsigned long
Pasi Kallinen [Fri, 10 Apr 2015 16:47:17 +0000 (19:47 +0300)]
Cast time_t into unsigned long

9 years agoUpdate precompiled lex and yacc files
Pasi Kallinen [Fri, 10 Apr 2015 16:45:04 +0000 (19:45 +0300)]
Update precompiled lex and yacc files

9 years agoFix attribution of sortloot patch
Pasi Kallinen [Fri, 10 Apr 2015 16:20:31 +0000 (19:20 +0300)]
Fix attribution of sortloot patch

9 years agoMerge branch 'master' into nhmall-booktribute
nhmall [Fri, 10 Apr 2015 16:15:14 +0000 (12:15 -0400)]
Merge branch 'master' into nhmall-booktribute

9 years agoMinor special level and compiler tweakage
Pasi Kallinen [Fri, 10 Apr 2015 13:47:29 +0000 (16:47 +0300)]
Minor special level and compiler tweakage

Fix allowed map characters.
Make some predefined MAPs blend in better with randomly
generated parts.

9 years agoFix Sanctum phasing bug.
Sean Hunt [Fri, 10 Apr 2015 13:09:02 +0000 (09:09 -0400)]
Fix Sanctum phasing bug.

9 years agoRestore the insect legs on Baalzebub's level.
Sean Hunt [Thu, 9 Apr 2015 17:50:11 +0000 (13:50 -0400)]
Restore the insect legs on Baalzebub's level.

9 years agorevisit variable arguments in new lev_comp
PatR [Fri, 10 Apr 2015 08:39:55 +0000 (01:39 -0700)]
revisit variable arguments in new lev_comp

The previous USE_OLDARGS worked with gcc on Intel, but was inherently
unsafe.  This method is completely safe, just obnoxiously intrusive.
It you disliked debugpline*(), you're bound to hate this....

9 years agoMake WALLIFIED_MAZE into a level flag.
Sean Hunt [Thu, 9 Apr 2015 17:26:43 +0000 (13:26 -0400)]
Make WALLIFIED_MAZE into a level flag.

It should now be randomly disabled for a 3rd of Gehennom, to make things
a tad more interesting there. It's also disabled in Baalzebub's lair,
to make things a little more interesting.

Still don't know why the beetle is disappearing.

9 years agoAdd sortloot -patch
Pasi Kallinen [Thu, 9 Apr 2015 14:53:40 +0000 (17:53 +0300)]
Add sortloot -patch

Adds the "sortloot" compound option, with possible values
of "none", "loot", or "full".  It controls the sorting of
item pickup lists for inventory and looting.

9 years agosupport pre-ansi varargs in new lev_comp
PatR [Thu, 9 Apr 2015 10:09:00 +0000 (03:09 -0700)]
support pre-ansi varargs in new lev_comp

Remove the requirement for <stdarg.h> that was introduced to lev_comp.
USE_STDARG still works.  USE_OLDARGS required hackery but has been
tested and actually works, although I wouldn't trust it on platforms
where 'long' and 'char *' aren't the same size.  USE_VARARGS didn't
require any hackery--aside from the conversion to core's pline code--
but has not been tested:  <varargs.h> supplied with OSX won't compile,
with an #error directive that basically says "switch to <stdarg.h>".

I changed several printf formats of %i and %li to %d and %ld because
I'm not sure how widespread the 'i' variant was back in days of yore.
[TODO:  avoid use of snprintf since pre-ANSI systems won't have it.]

9 years agoAdd 2 new Medusa variants
Pasi Kallinen [Wed, 8 Apr 2015 17:38:32 +0000 (20:38 +0300)]
Add 2 new Medusa variants

9 years agoAdd 10 new bigroom variants
Pasi Kallinen [Wed, 8 Apr 2015 15:31:32 +0000 (18:31 +0300)]
Add 10 new bigroom variants

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Wed, 8 Apr 2015 14:32:11 +0000 (10:32 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agonhsub docs and fixes
keni [Wed, 8 Apr 2015 14:31:49 +0000 (10:31 -0400)]
nhsub docs and fixes

9 years agoDo not clean tribute file on Unix.
Sean Hunt [Wed, 8 Apr 2015 00:44:54 +0000 (20:44 -0400)]
Do not clean tribute file on Unix.

9 years agoRenumber other.txt tiles
Pasi Kallinen [Tue, 7 Apr 2015 18:34:57 +0000 (21:34 +0300)]
Renumber other.txt tiles

9 years agoClive Crous' Dark Room patch
Pasi Kallinen [Tue, 7 Apr 2015 17:12:53 +0000 (20:12 +0300)]
Clive Crous' Dark Room patch

This patch adds a new glyph that represents dark parts of room,
splitting the dual functionality of the "unexplored/dark area" glyph.

9 years agoAdd quotes for Eric and Moving Pictures.
Sean Hunt [Tue, 7 Apr 2015 16:47:43 +0000 (12:47 -0400)]
Add quotes for Eric and Moving Pictures.

9 years agoIndicator glyph for good target positions
Pasi Kallinen [Tue, 7 Apr 2015 15:18:49 +0000 (18:18 +0300)]
Indicator glyph for good target positions

Add a new glyph, S_goodpos, to indicate valid locations
instead of reusing the camera flash beam glyph.

9 years agotty fix for bad curs positioning (-1,n)
PatR [Tue, 7 Apr 2015 08:23:16 +0000 (01:23 -0700)]
tty fix for bad curs positioning (-1,n)

DEBUGFILES set to "wintty.c" reported a bad cursor positioning attempt
at the end of the RIP tombstone, and when set to "questpgr.c wintty.c"
reported a whole bunch right at the start of the game when enumerating
all the quest messages for the chosen role.  Both were triggered by
this x==0 call to tty_curs() near the end of process_text_window().
    if (i == cw->maxrow) {
        if(cw->type == NHW_TEXT){
            tty_curs(BASE_WINDOW, 0, (int)ttyDisplay->cury+1);
            cl_eos();
        }
    ...
The x value is always decremented in tty_curs, so passing in 0 yields
a bad value of -1.  The bad call returns without doing anything, and
when DEBUG is disabled, it does so silently.

No fixes entry; it was caused by a post-3.4.3 fix for something else.

9 years agoattempt to fix Makefile issue with tribute
nhmall [Tue, 7 Apr 2015 03:16:14 +0000 (23:16 -0400)]
attempt to fix Makefile issue with tribute

9 years agoMerge branch 'nhmall-booktribute' of https://rodney.nethack.org:20040/git/NHsource...
nhmall [Tue, 7 Apr 2015 02:41:00 +0000 (22:41 -0400)]
Merge branch 'nhmall-booktribute' of https://rodney.nethack.org:20040/git/NHsource into nhmall-booktribute

9 years agofunction definitition to match prototype const
nhmall [Tue, 7 Apr 2015 02:38:01 +0000 (22:38 -0400)]
function definitition to match prototype const

9 years agoAdding quotes for The Light fantastic
karnov [Tue, 7 Apr 2015 01:46:51 +0000 (21:46 -0400)]
Adding quotes for The Light fantastic

9 years agoReformat and passage for The Truth
karnov [Mon, 6 Apr 2015 23:03:02 +0000 (19:03 -0400)]
Reformat and passage for The Truth

9 years agonhsub: handle some more cases
keni [Mon, 6 Apr 2015 21:48:48 +0000 (17:48 -0400)]
nhsub: handle some more cases

9 years agoMerge branch 'master' into nhmall-booktribute
nhmall [Mon, 6 Apr 2015 21:47:11 +0000 (17:47 -0400)]
Merge branch 'master' into nhmall-booktribute

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Mon, 6 Apr 2015 20:18:44 +0000 (16:18 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agonhclose
nhmall [Mon, 6 Apr 2015 14:12:10 +0000 (10:12 -0400)]
nhclose
 Changes to be committed:
modified:   include/extern.h
modified:   src/bones.c
modified:   src/do.c
modified:   src/files.c
modified:   src/music.c
modified:   src/restore.c
modified:   src/save.c
modified:   sys/share/pcmain.c
modified:   sys/share/pcsys.c
modified:   sys/share/pcunix.c

In order to get level file locking correctly again post 3.4.3
with the newer compilers for windows, I had to funnel close()
calls to an intercepting routine.

I had two choices:

1. Surround every close() in at least 9 source files with messy:
#ifdef WIN32
nhclose(fd);
#else
close(fd);
#endif

OR

2. Replace every close() with nhclose() and
   deal with the special code in the nhclose()
   version for windows, while just calling
   close() for other platforms (in files.c).

   It is also possible, although not done in this commit,
   to
#define nhclose(fd) close(fd)
   in a header file for non-windows, rather than funnel
   though a real nhclose() function in files.c.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Mon, 6 Apr 2015 12:11:17 +0000 (08:11 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoQuick band-aid to prevent PRNG prediction
Pasi Kallinen [Mon, 6 Apr 2015 06:30:34 +0000 (09:30 +0300)]
Quick band-aid to prevent PRNG prediction

This is originally Derek's change from Spork, but sniping it
so we can mark this done for now, and can move on with the
nextversion.

Better solution is to use something like the ISAAC PRNG, which
cannot be predicted.

9 years agofire effects should burn green slime globs, too
Derek S. Ray [Mon, 6 Apr 2015 01:56:15 +0000 (21:56 -0400)]
fire effects should burn green slime globs, too

On floor, in inventory, whatever. This probably needs to be extended to
support a much wider group of objects, but this will do to start.

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
keni [Mon, 6 Apr 2015 00:57:28 +0000 (20:57 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoseveral fixes for farming changes
Derek S. Ray [Sun, 5 Apr 2015 22:04:22 +0000 (18:04 -0400)]
several fixes for farming changes

* don't let player wish for multiple globs
* use newsym() to clean up merged globs on floor
* food effects should match original corpse effects
* tidy up remaining crash when merging in place

9 years agoMerge branch 'master' of https://rodney.nethack.org:20040/git/NHsource
nhmall [Sun, 5 Apr 2015 13:34:00 +0000 (09:34 -0400)]
Merge branch 'master' of https://rodney.nethack.org:20040/git/NHsource

9 years agoAdd missing protos
Pasi Kallinen [Sun, 5 Apr 2015 13:29:34 +0000 (16:29 +0300)]
Add missing protos

9 years agoa warning bout lc_error
nhmall [Sun, 5 Apr 2015 13:26:01 +0000 (09:26 -0400)]
a warning bout lc_error

lev_comp.l(310) : warning C4013: 'lc_error' undefined; assuming extern returning int