]> granicus.if.org Git - nethack/log
nethack
9 years agoWindows 10
nhmall [Wed, 11 Nov 2015 14:19:06 +0000 (09:19 -0500)]
Windows 10
 Changes to be committed:
modified:   README

 Changes not staged for commit:
modified:   sys/winnt/Install.nt

9 years agotty memory management at program termination
PatR [Wed, 11 Nov 2015 09:43:03 +0000 (01:43 -0800)]
tty memory management at program termination

Release some dynamically allocated memory prior to exit.  These were
previously left alone due to assumed complexity (at least by me...),
but dealing with them turned out to be straightforward.

|#if FREE_ALL_MEMORY
 free BASE_WINDOW  -- tty-specific; other windows are drawn on top of it
 free ttyDisplay   -- tty's basic data structure
|#endif
 free nh_HI, nh_HE -- termcap values handled differently from the rest

These are the last things that 'heaputil' always reported as not freed
for the basic Unix+tty configuration.  (I've observed other things not
being freed; those are post-3.4.3 bugs that need to be found and fixed.)

9 years agodoset() -> special_handling() -> free(NULL)
PatR [Wed, 11 Nov 2015 09:28:04 +0000 (01:28 -0800)]
doset() -> special_handling() -> free(NULL)

This isn't urgent, but I figure that until the mac build stuff gets
merged in, the core is still fair game....

'O' command's autopickup_exceptions was freeing a menu pick-list even
when it hadn't been allocated (for the list case, and for the remove
case if nothing was chosen for removal).  That code was evidently used
as the model for msgtype and menucolors; they had the same situation.

I think ANSI and ISO sanction free(NULL) as a no-op, but pre-ANSI free
implementations don't necessarily handle that benignly.  Even if they
all do, freeing something--even if that 'something' is nothing--which
hasn't been allocated is a bug on our end.

9 years agoadd Windows info
keni [Tue, 10 Nov 2015 18:27:32 +0000 (13:27 -0500)]
add Windows info

9 years agoAdd the DEVEL tree to Files.
keni [Tue, 10 Nov 2015 14:44:21 +0000 (09:44 -0500)]
Add the DEVEL tree to Files.

9 years agoREADME and dat/history update
PatR [Tue, 10 Nov 2015 09:49:21 +0000 (01:49 -0800)]
README and dat/history update

README - add VMS back as a tested platform; thanks KevinS!
dat/history - add VMS update, remove trailing whitespace, two spaces;
  instead of just one (recently added stuff) for sentence separation;
sys/vms/Install.vms - minimal update;
Files - reformat the win32 project section to fit within 80 columns.

9 years agooptions.c cleanup
PatR [Tue, 10 Nov 2015 03:20:19 +0000 (19:20 -0800)]
options.c cleanup

Replace several 'foo = alloc(strlen(bar)+1), strcpy(foo,bar)' sequences
  with 'foo = dupstr(bar)' calls.
Change 'free(foo)' into 'free((genericptr_t) foo)' to possibly pacify
  'lint' and/or really old compilers.
Add braces around 'if something;' when 'else { otherwise; }' has braces.
Simplify option value formatting for 'sortloot'.

9 years agotiny symset memory leak
PatR [Tue, 10 Nov 2015 03:11:41 +0000 (19:11 -0800)]
tiny symset memory leak

Symbol set names weren't being freed upon exit.

9 years agoupdate util/.gitignore
PatR [Tue, 10 Nov 2015 02:37:00 +0000 (18:37 -0800)]
update util/.gitignore

Tell git to ignore the presence of the heaputil program in util/.
(It lives in NHinternal/devteam/util/heaputil.c but working with it
from there is inconvenient.)

9 years agoSYSCF tiny memory leak
PatR [Tue, 10 Nov 2015 01:21:20 +0000 (17:21 -0800)]
SYSCF tiny memory leak

Free sysopt.shellers and sysopt.explorers when releasing the memory used
for other sysopt fields.

Also some formatting stuff since sys.c was previously untouched.

9 years agoUnify blind feel_location or newsym info single func
Pasi Kallinen [Mon, 9 Nov 2015 19:37:28 +0000 (21:37 +0200)]
Unify blind feel_location or newsym info single func

9 years agoUnwrap t-shirt and apron texts, and add one t-shirt msg
Pasi Kallinen [Mon, 9 Nov 2015 11:24:40 +0000 (13:24 +0200)]
Unwrap t-shirt and apron texts, and add one t-shirt msg

9 years agoRemove trailing whitespaces
Pasi Kallinen [Mon, 9 Nov 2015 11:06:19 +0000 (13:06 +0200)]
Remove trailing whitespaces

9 years agofix makedefs
PatR [Mon, 9 Nov 2015 09:47:18 +0000 (01:47 -0800)]
fix makedefs

If makedefs.c is compiled with MONITOR_HEAP defined, attempted calls to
free() resulted in link failure.  Since makedefs doesn't use alloc(),
call free() directly instead of redirecting to nhfree().

Also some assorted reformatting....

9 years agotribute: A Hat Full of Sky
PatR [Mon, 9 Nov 2015 01:58:49 +0000 (17:58 -0800)]
tribute: A Hat Full of Sky

9 years agoAdd quote for cream pie
Pasi Kallinen [Sun, 8 Nov 2015 13:28:19 +0000 (15:28 +0200)]
Add quote for cream pie

9 years agolast of the reformatting...
PatR [Sun, 8 Nov 2015 09:41:43 +0000 (01:41 -0800)]
last of the reformatting...

This one has a couple of code changes included, but they shouldn't
produce any change in game play.  If anyone adds a new shirt or shield
they'll have to update the corresponding foo_on() and foo_off() routines
to avoid an 'impossible' when putting on or taking off the new item(s),
the same situation as already happens for other subclasses of armor.

9 years agomore formatting
PatR [Sun, 8 Nov 2015 09:37:55 +0000 (01:37 -0800)]
more formatting

Mostly tab replacement, plus the last of the cast spacing.

9 years agoAdd quote for blue jelly
Pasi Kallinen [Sun, 8 Nov 2015 09:13:14 +0000 (11:13 +0200)]
Add quote for blue jelly

9 years agoformatting: more casts
PatR [Sun, 8 Nov 2015 04:02:04 +0000 (20:02 -0800)]
formatting:  more casts

9 years agoAdd a quote for bullwhip
Pasi Kallinen [Sat, 7 Nov 2015 21:50:40 +0000 (23:50 +0200)]
Add a quote for bullwhip

9 years agoAdd boomerang quote
Pasi Kallinen [Sat, 7 Nov 2015 19:56:18 +0000 (21:56 +0200)]
Add boomerang quote

9 years agoformatting: more (typedef) (expression)
PatR [Sat, 7 Nov 2015 10:35:22 +0000 (02:35 -0800)]
formatting: more (typedef) (expression)

9 years agoMake status hilites show none instead of empty in options
Pasi Kallinen [Sat, 7 Nov 2015 09:55:12 +0000 (11:55 +0200)]
Make status hilites show none instead of empty in options

9 years agoformatting: casts involving typedefs
PatR [Sat, 7 Nov 2015 09:12:30 +0000 (01:12 -0800)]
formatting: casts involving typedefs

The automated reformatting put a space in casts of the form
'(type)(expression)', yielding '(type) (expression)', but it didn't
do that for '(typedef)(expression)'.  There are lots of instances of
'(boolean)(expression)'; (uchar) and (xchar) also occur.  I haven't
noticed other types, but I haven't looked in very many files yet.

9 years agoRemove stray character
Pasi Kallinen [Sat, 7 Nov 2015 08:59:43 +0000 (10:59 +0200)]
Remove stray character

9 years agorn2()/rnd() debugging
PatR [Sat, 7 Nov 2015 08:12:09 +0000 (00:12 -0800)]
rn2()/rnd() debugging

Finding bad calls to rn2(0) or rnd(0) should not be dependent upon
having DEBUGFILES=rnd.c, so switch from debugpline() to impossible().

9 years agoRephrase version number in comment
Pasi Kallinen [Sat, 7 Nov 2015 07:06:13 +0000 (09:06 +0200)]
Rephrase version number in comment

9 years agoyet more src reformatting
PatR [Sat, 7 Nov 2015 02:03:13 +0000 (18:03 -0800)]
yet more src reformatting

Last of the suspicious block comments, plus the usual miscellaneous
stuff in files that hadn't been subjected to it before.

9 years agocouple of string concatenations in win/tty/
PatR [Sat, 7 Nov 2015 00:39:29 +0000 (16:39 -0800)]
couple of string concatenations in win/tty/

Plus a modest amount (really!) of reformatting.

Also got rid of 'copy_of()' since dupstr() does the same thing [except
for the 'treat Null as ""' part; when needed, that can be done in the
call:  dupstr(!str ? "" : str)].

9 years agoeliminate implicit concatenation of strings
PatR [Fri, 6 Nov 2015 23:57:23 +0000 (15:57 -0800)]
eliminate implicit concatenation of strings

Explicitly combine adjacent string literals so that pre-ANSI compilers
still have a chance to compile the code.  I thought these had already
been dealt with, but I kept stumbling across them while reformatting,
so am trying to get them all out of the way now.

9 years agoUpdate version numbers in source comments
Pasi Kallinen [Fri, 6 Nov 2015 14:04:48 +0000 (16:04 +0200)]
Update version numbers in source comments

9 years agoFix one version number in the Guidebooks
Pasi Kallinen [Fri, 6 Nov 2015 13:56:47 +0000 (15:56 +0200)]
Fix one version number in the Guidebooks

9 years agoRemove a leftover ifdef REINCARNATION
Pasi Kallinen [Fri, 6 Nov 2015 13:49:29 +0000 (15:49 +0200)]
Remove a leftover ifdef REINCARNATION

9 years agoClean fixes file and lev_comp docs tiny bit
Pasi Kallinen [Fri, 6 Nov 2015 13:42:36 +0000 (15:42 +0200)]
Clean fixes file and lev_comp docs tiny bit

9 years agoUpdate the linux README
Pasi Kallinen [Fri, 6 Nov 2015 13:35:38 +0000 (15:35 +0200)]
Update the linux README

9 years agomore src reformatting
PatR [Fri, 6 Nov 2015 11:14:50 +0000 (03:14 -0800)]
more src reformatting

Fixing up mis-indented block comments, but hit some files that hadn't
had the earlier mixture of tab replacement, etc, so it's bigger than I
expected.  If I get to it, they'll be another round of this tomorrow.

9 years agofix scroll of charging
PatR [Fri, 6 Nov 2015 02:39:02 +0000 (18:39 -0800)]
fix scroll of charging

The intended change was that you'd get an increase to max energy if
current was sufficiently close to max rather than only when it was
already at max.  It wasn't intended that you'd fail to have current
boosted all the way to max in the case where it wasn't sufficiently
close.  That's fixed here.

9 years agoFree allocated temporary lregion
Pasi Kallinen [Thu, 5 Nov 2015 19:03:57 +0000 (21:03 +0200)]
Free allocated temporary lregion

9 years agoformatting - last of the trailing continuations
PatR [Thu, 5 Nov 2015 08:54:13 +0000 (00:54 -0800)]
formatting - last of the trailing continuations

Last few && or || followed by end-of-line comments, plus tab replacement
and 'return' parentheses.  Not as many of those; some of these files had
already had that done.

Also, tweaked non-cursed scroll of charging read while confused to be a
tiny bit more effective.

To do:  find and fix block comments that immediately follow a line with
an end-of-line comment and got misindented to line up with that comment.

9 years agoAllow some variance in corridors and reduce predictability
Pasi Kallinen [Wed, 4 Nov 2015 19:13:34 +0000 (21:13 +0200)]
Allow some variance in corridors and reduce predictability

The corridors used to head towards the goal using the straightest
possible line, often making a zig-zag beeline. Allow some slight variance,
sometimes going straight instead of turning, reducing the predictability,
and making those monotonously turning corridors less likely.

9 years agomultishot throwing/shooting feedback
PatR [Wed, 4 Nov 2015 10:57:40 +0000 (02:57 -0800)]
multishot throwing/shooting feedback

While the topic of strprepend() is current, make good use of it.
Simplify code which inserts "the Nth " in front of "<arrow,&c>".

I'm pretty sure there are one or two other places where I assumed that
the outpuf of xname() was a char array which is BUFSZ in length rather
than BUFSZ-PREFIX, and reused the buffer, but I don't know where they
occur.  (BUFSZ-PREFIX is still big enough to hold most things, so it
might not lead to trouble.)

9 years agospellcasting bug fix: confusion duration
PatR [Wed, 4 Nov 2015 10:27:59 +0000 (02:27 -0800)]
spellcasting bug fix: confusion duration

Fix the reported bug that attempting to cast an expired spell, which
causes confusion and/or stun, was replacing the duration of any existing
confusion or stun with the new amount rather than increasing it by that
amount.

Attempting to cast any spell while stunned will now fail immediately,
and casting an expired spell while confused will increase confusion
duration (and/or set stun duration) rather than override it.

9 years agoanother batch of formatting
PatR [Wed, 4 Nov 2015 02:28:53 +0000 (18:28 -0800)]
another batch of formatting

Same sort of stuff as before:  some continuation lines with operator
followed by end of line comment (only a few files with those still to
go...), plus tab replaced by spaces in comments, excess parenthesis
removal for return statements, and force function name to be in column
one in function definitions:
  type name(args) /* comment */
  argtype args;
  {
to
  /* comment */
  type
  name(args)
  argtype args;
  {
I've been spotting those by eye rather than rexexp, so probably missed
some.

9 years agopotions of gain energy
PatR [Wed, 4 Nov 2015 02:13:00 +0000 (18:13 -0800)]
potions of gain energy

When doing some more reformatting I came across something I've been
meaning to tweak for a long time, and since the change is only a couple
of lines I'm putting it in now instead of waiting.  Make potions of
gain energy more useful for actually regaining energy so they might not
be relegated to alchemy all the time.  The adjustment is probably too
low to really achieve that, but I didn't want to risk going too high.

Increase to max energy is only a little higher (average 10.5 vs 9 for
blessed, 7 vs 4 for uncursed) but to current energy is noticeably higher
(31.5 vs 9 for blessed, 21 vs 4 for uncursed; capped by max energy so
bigger increase only matters if current is below max when quaffing).

9 years agoreleasing inventory window(s)
PatR [Tue, 3 Nov 2015 02:14:57 +0000 (18:14 -0800)]
releasing inventory window(s)

This should address the issue that the problem patch to display_pickinv()
was trying to deal with:  releasing the inventory window before exiting
the program so Pasi's memory checker doesn't think it's a memory leak.

Not related, but in the same file:
The older qsort comparison routines are tagged with CFDECLSPEC to deal
with some C vs C++ interaction issue.  I added that to the relatively
recently added 'sortloot' qsort compare callback.

I also changed worn_wield_only(), although it isn't actually called.
(display_minventory() has provisions to call it, but both of the latter's
callers pass in MINV_ALL so allow_all() gets used instead.)

9 years agoRevert the created inventory nhwindow destruction
Pasi Kallinen [Mon, 2 Nov 2015 20:23:08 +0000 (22:23 +0200)]
Revert the created inventory nhwindow destruction

At least perm_invent (and other stuff?) causes problems with this.

9 years agofix can_carry()
PatR [Mon, 2 Nov 2015 09:53:38 +0000 (01:53 -0800)]
fix can_carry()

Noticed while going through more reformatting:  can_carry() was changed
to return a number rather than yes/no, but it's trying to return a long
value (obj->quan) as an int.

Gold is the only thing likely to exceed LARGEST_INT in actual play
(although rocks could manage it if somebody tried hard enough).  This
makes sure that the value returned doesn't exceed LARGEST_INT, but only
tame monsters honor the resulting subset value (at least for gold) and
split the stack.  The proper fix is to convert can_carry() and all its
uses to long, but I'd rather spend my time on other stuff.

9 years agoforce NHSUBST for X11 icons
PatR [Mon, 2 Nov 2015 09:51:58 +0000 (01:51 -0800)]
force NHSUBST for X11 icons

9 years agoChange version number of the help file
Pasi Kallinen [Mon, 2 Nov 2015 09:23:10 +0000 (11:23 +0200)]
Change version number of the help file

9 years agoChange Porting file version number to 3.6
Pasi Kallinen [Mon, 2 Nov 2015 07:30:36 +0000 (09:30 +0200)]
Change Porting file version number to 3.6

9 years agoDestroy created inventory nhwindow
Pasi Kallinen [Sun, 1 Nov 2015 19:59:56 +0000 (21:59 +0200)]
Destroy created inventory nhwindow

9 years agoActually destroy the character selection window
Pasi Kallinen [Sun, 1 Nov 2015 18:49:32 +0000 (20:49 +0200)]
Actually destroy the character selection window

9 years agoFix crystal ball use after being destroyed
Pasi Kallinen [Sun, 1 Nov 2015 16:49:38 +0000 (18:49 +0200)]
Fix crystal ball use after being destroyed

Crystal ball can be destroyed when used, so pass the object parameter
back as null in that case.

9 years agoX11 icon version numbering
PatR [Sun, 1 Nov 2015 11:59:55 +0000 (03:59 -0800)]
X11 icon version numbering

One of the steps in the pre-release checklist:  make sure the version
number in the X11 icons is up to date.  nh32icon and nh56icon both have
the version number (major and minor values only, not patchlevel).
Update it from 3.4 to 3.6 for both.  (nh72icon doesn't have any version
info in its design, so doesn't need any update.)

The X11 'bitmap' program strips out the header comments, so I modified
the image, saved it, used 'git diff --patch' to capture the changes,
'git checkout' to revert to the existing file, and edited in the diff
bands pertaining to the changed data.  No doubt this could have been
done in some easier fashion, but it was victory just to find the bitmap
utility and achieve results using a one-button mouse--worse, a clumsy
touchpad substituting for one--when it's designed for a three-button one.

9 years agoyet more formatting
PatR [Sun, 1 Nov 2015 09:17:54 +0000 (01:17 -0800)]
yet more formatting

Reformat some trailing &&, || operators followed by end-of-line comment,
missed by the earlier continuation formating.

An
  #if 0
    something {
  #else
    something_else {
  #endif
construct in rhack(cmd.c) confused the automated reformatter, resulting
in some code from inside a function ending up in column 1.

9 years agoFree the compiled regex buffer
Pasi Kallinen [Sun, 1 Nov 2015 08:23:11 +0000 (10:23 +0200)]
Free the compiled regex buffer

9 years agotribute: Monstrous Regiment
PatR [Sun, 1 Nov 2015 01:37:16 +0000 (18:37 -0700)]
tribute: Monstrous Regiment

9 years agostr_end_is()
PatR [Sun, 1 Nov 2015 00:13:26 +0000 (17:13 -0700)]
str_end_is()

Move this small utility routine to hacklib.c where other such things
live and where it's feasible to find them if you need the functionality
elsewhere.

9 years agoPrevent array underflow
Pasi Kallinen [Sat, 31 Oct 2015 23:44:10 +0000 (01:44 +0200)]
Prevent array underflow

9 years agoPrevent string underflow in fruit name matching
Pasi Kallinen [Sat, 31 Oct 2015 23:42:57 +0000 (01:42 +0200)]
Prevent string underflow in fruit name matching

9 years agoAdd missing regex_frees
Pasi Kallinen [Sat, 31 Oct 2015 23:38:12 +0000 (01:38 +0200)]
Add missing regex_frees

9 years agoFree the venom object, even if it is not thrown
Pasi Kallinen [Sat, 31 Oct 2015 23:36:18 +0000 (01:36 +0200)]
Free the venom object, even if it is not thrown

9 years agoPrevent out of array access
Pasi Kallinen [Sat, 31 Oct 2015 23:32:20 +0000 (01:32 +0200)]
Prevent out of array access

As index() can match with the string terminator, that would make
the xdir etc array references out of bounds.

9 years agoFix lev_comp memory leaks
Pasi Kallinen [Sat, 31 Oct 2015 22:28:28 +0000 (00:28 +0200)]
Fix lev_comp memory leaks

9 years agoFix makedefs memory leaks
Pasi Kallinen [Sat, 31 Oct 2015 22:12:38 +0000 (00:12 +0200)]
Fix makedefs memory leaks

9 years agoUse our dupstr instead
Pasi Kallinen [Fri, 30 Oct 2015 21:27:19 +0000 (23:27 +0200)]
Use our dupstr instead

9 years agoFix trying to look up curse state of deleted object
Pasi Kallinen [Fri, 30 Oct 2015 18:54:45 +0000 (20:54 +0200)]
Fix trying to look up curse state of deleted object

9 years agoFree the allocated special level coder
Pasi Kallinen [Fri, 30 Oct 2015 18:16:10 +0000 (20:16 +0200)]
Free the allocated special level coder

9 years agoAdd a Ben Aaronovitch quote as an engraving.
keni [Fri, 30 Oct 2015 13:33:43 +0000 (09:33 -0400)]
Add a Ben Aaronovitch quote as an engraving.

9 years agoFix syntax error in MacGraphics conditional part
Pasi Kallinen [Fri, 30 Oct 2015 08:15:28 +0000 (10:15 +0200)]
Fix syntax error in MacGraphics conditional part

9 years agocommit 84bec89d403a219ff75ae3fa97109de0cfb7941f
PatR [Fri, 30 Oct 2015 07:58:06 +0000 (00:58 -0700)]
commit 84bec89d403a219ff75ae3fa97109de0cfb7941f
Author: PatR <rankin@nethack.org>
Date:   Fri Oct 30 00:50:52 2015 -0700

    more formatting

    Fix up the files containing '[?:] */' to get trailing trinary operator
    followed by end-of-line comment.  Tab replacement and removal of excess
    parentheses on return statements also done.

9 years ago'#turn' for non-priests/non-knights
PatR [Fri, 30 Oct 2015 07:44:58 +0000 (00:44 -0700)]
'#turn' for non-priests/non-knights

Another code change while reformatting:  '#turn' by non-priest/non-knight
casts the "turn undead" spell if the hero has learned it, but it was
forcing the spell code to aim at self rather than ask for a direction.
Evidently nobody has ever used that while knowing the spell and able to
cast it....

9 years agoOSX vs apple core dump
PatR [Fri, 30 Oct 2015 07:20:59 +0000 (00:20 -0700)]
OSX vs apple core dump

Some reformatting mutated into a code change:  OSX gets code from two
conditional blocks
  '#if UNIX: eat apple or pear, give "core dump" message'
  '#if MAC || OSX: eat apple, give "It's a Macintosh" message'
but the second wouldn't be chosen due to the if-then-else logic having
already handled obj->otyp==APPLE before it was reached.  Reorder them
so that OSX gets the Macintosh message for apples and the core dump
message for pears.

9 years agomonsters moving after player leaves level
PatR [Fri, 30 Oct 2015 01:18:12 +0000 (18:18 -0700)]
monsters moving after player leaves level

Fix the problem reported by ais where it was possible for one monster
to knock the hero onto a level teleporter (or trapdoor or hole),
destination was selected and allowed-to-level-teleport checks were made,
then for another monster to knock or teleport the not-yet-relocated-hero
onto the Amulet and have auto-pickup move it into inventory.  At the end
of that turn's monster movement, hero would level teleport successfully
despite carrying the Amulet.

This short-circuits monster movement if the hero is scheduled to be
moved to a different level.  The monsters who haven't moved yet don't
lose their pending movement points; they'll catch up if/when the hero
returns to the level.

9 years agoFix uninitialized variable
Pasi Kallinen [Thu, 29 Oct 2015 19:45:35 +0000 (21:45 +0200)]
Fix uninitialized variable

9 years agoFix uninitialized variable
Pasi Kallinen [Thu, 29 Oct 2015 18:26:25 +0000 (20:26 +0200)]
Fix uninitialized variable

9 years agoformatting: src/t*.c - z*.c continuation lines
PatR [Thu, 29 Oct 2015 00:33:38 +0000 (17:33 -0700)]
formatting: src/t*.c - z*.c continuation lines

End of first pass, but '[&|?:][ \t]*$' doesn't catch trailing operater
followed by end-of-line comment so more needs to be done.  As with the
past couple of batches, I've removed redundant parentheses from 'return'
statements but only for files that had continuation fix-ups.

I've also removed tabs from comments in some of the files, but didn't
start until part way through this subset of the sources.

9 years agoAdd sanity checking for light sources
Pasi Kallinen [Tue, 27 Oct 2015 16:36:07 +0000 (18:36 +0200)]
Add sanity checking for light sources

9 years agoPass LFLAGS from hints file to util Makefile
Pasi Kallinen [Tue, 27 Oct 2015 16:13:35 +0000 (18:13 +0200)]
Pass LFLAGS from hints file to util Makefile

9 years agoformatting: src/r*.c - src/s*.c continuation lines
PatR [Tue, 27 Oct 2015 00:49:40 +0000 (17:49 -0700)]
formatting: src/r*.c - src/s*.c continuation lines

9 years agoFix mon weapon inconsistency when monster got disintegrated
Pasi Kallinen [Sat, 24 Oct 2015 06:19:35 +0000 (09:19 +0300)]
Fix mon weapon inconsistency when monster got disintegrated

This happened when the monster, who was wielding a weapon, got hit
by a disintegration blast, and then lifesaved by a worn amulet.

9 years agoFirst bits of a hints file for 10.11. Still needs (at minimum) new packaging code.
keni [Fri, 23 Oct 2015 17:47:38 +0000 (13:47 -0400)]
First bits of a hints file for 10.11.  Still needs (at minimum) new packaging code.

9 years agotribute: The Wee Free Men
PatR [Fri, 23 Oct 2015 08:37:31 +0000 (01:37 -0700)]
tribute: The Wee Free Men

9 years agoformatting: src/m*.c - p*.c continuation lines
PatR [Thu, 22 Oct 2015 23:35:01 +0000 (16:35 -0700)]
formatting: src/m*.c - p*.c continuation lines

Somewhere along the line I started removing redundant parentheses from
return statements, but only in files that needed continuation fixups
so it's not comprehensive.

9 years agotribute typo
PatR [Wed, 21 Oct 2015 23:56:39 +0000 (16:56 -0700)]
tribute typo

9 years agotrubute: Night Watch
PatR [Wed, 21 Oct 2015 08:02:18 +0000 (01:02 -0700)]
trubute: Night Watch

9 years agoformatting: src/e*.c - l*.c continuation lines
PatR [Wed, 21 Oct 2015 00:55:26 +0000 (17:55 -0700)]
formatting: src/e*.c - l*.c continuation lines

Relatively small number of continuation fixes needed for this subset.

Quite a bit of mangling to engrave.c unrelated to continuation lines,
with three or four coding changes.

9 years agoFix segfault when chameleon form fails on the Rogue level
Pasi Kallinen [Tue, 20 Oct 2015 14:28:16 +0000 (17:28 +0300)]
Fix segfault when chameleon form fails on the Rogue level

9 years agoformatting: src/a*.c - d*.c continuation lines
PatR [Tue, 20 Oct 2015 00:32:21 +0000 (17:32 -0700)]
formatting: src/a*.c - d*.c continuation lines

Mostly && and || at end of the first half of a continued line rather
than at the start of the second half.  The automated reformat got
confused by comments in the midst of such lines.
  foo ||
  bar
was converted to
  foo
  || bar
but
  foo ||
  /* comment */
  bar
stayed as is.

Some excluded code [#if 0] was also manually reformatted, but this is
mainly stuff that can be found via regexp '[&|?:][ \t]*$' (with a lot
of false hits for labels whose colon ends their line).

9 years agounsplitting split object stack
PatR [Mon, 19 Oct 2015 00:37:15 +0000 (17:37 -0700)]
unsplitting split object stack

Replace the code that Dean objected to with something a little bit more
robust.  It doesn't rely on the two stacks being adjacent or having the
same inventory letter.  It is still vulnerable to having another
splitobj() occur between the offending split and its attempted unsplit,
or to either of the two halves of a split being extracted from their
object chain.  As before, failure to unsplit only results in the two
halves of the split remaining separate stacks, not anything more drastic
like the panic() that prompted all this.

Simplification of hallucinated currency names got mixed in with this
patch.  I haven't bothered separating it back out.

Whoever reset PATCHLEVEL to 0 jumped the gun.  This patch increments it
since change to the 'context' structure breaks save file compatibility,
so it will need to undergo another reset before release.

9 years agoclear_bypasses() comment
PatR [Mon, 19 Oct 2015 00:29:19 +0000 (17:29 -0700)]
clear_bypasses() comment

While looking at clear_bypasses() I noticed some excluded code [#if 0]
which could be risky to include, so update the comment there.  Also,
excluded code tends to need formatting fix-up.

9 years agoAdd more hallu monsters
Pasi Kallinen [Sun, 18 Oct 2015 15:11:56 +0000 (18:11 +0300)]
Add more hallu monsters

9 years agoUse macros for monster appearances
Pasi Kallinen [Sun, 18 Oct 2015 10:55:11 +0000 (13:55 +0300)]
Use macros for monster appearances

9 years agotribute: Thief of Time
PatR [Sun, 18 Oct 2015 09:15:15 +0000 (02:15 -0700)]
tribute: Thief of Time

For passage 4, I ended up including a lot more than originally intended.
The text is only two full pages (top of 74 to bottom of 75) though.

9 years agoUse existing function for stumbling on door mimic
Pasi Kallinen [Sun, 18 Oct 2015 06:57:07 +0000 (09:57 +0300)]
Use existing function for stumbling on door mimic

9 years agowet towel enhancements
PatR [Sun, 18 Oct 2015 00:00:53 +0000 (17:00 -0700)]
wet towel enhancements

Flesh out wet towels a bit:
1) wielding a wet towel--or a dry one which becomes wet--won't give a
   "you begin bashing with your wet towel" message when attacking;
2) if a formerly wet towel dries out completely while wielded, *do* give
   "you begin bashing with your towel" on the next attack;
3) successfully hitting with a wet towel no longer always loses wetness;
4) water damage to dry towel always confers at least 1 point of wetness;
5) taking fire damage (via burnarmor() which is used for most types of
   fire damage) has a chance to partially or fully dry a wet towel
   (regardless of whether it's wielded at the time; applies to monsters
   as well as hero; each towel being carried is checked until one is
   affected, then any others escape drying.

Not done:
-) attacking with a wielded wet towel perhaps ought to be treated as a
   weapon attack using whip skill rather than an augmented arbitrary-
   junk-by-weight attack;
-) throwing a wet towel should probably ignore wetness--it's just a wet
   piece of cloth when not finishing with a whip snap; right now, it
   loses a point of wetness when thrown and usually--#3 above--another
   point if it hits...;
-) hitting burning creatures is no different than hitting anything else;
-) likewise for hitting wet creatures.

9 years agoComment typofixes, pt 4
Pasi Kallinen [Sat, 17 Oct 2015 15:47:31 +0000 (18:47 +0300)]
Comment typofixes, pt 4

9 years agoComment typofixes, pt 3
Pasi Kallinen [Sat, 17 Oct 2015 10:47:25 +0000 (13:47 +0300)]
Comment typofixes, pt 3

9 years agoComment typofixes, pt 2
Pasi Kallinen [Sat, 17 Oct 2015 10:15:46 +0000 (13:15 +0300)]
Comment typofixes, pt 2