]> granicus.if.org Git - nethack/log
nethack
9 years agomore pilemark
nhmall [Sat, 20 Jun 2015 12:38:11 +0000 (08:38 -0400)]
more pilemark

9 years agoPilemark support for windows
nhmall [Sat, 20 Jun 2015 12:33:49 +0000 (08:33 -0400)]
Pilemark support for windows
 Changes to be committed:
modified:   win/win32/mhmap.c
modified:   win/win32/winMS.h
modified:   win/win32/winhack.c

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Wed, 17 Jun 2015 23:39:24 +0000 (19:39 -0400)]
Merge branch 'master' into win32-x64-working

9 years agowin32_gui: load pile mark bitmap on startup
Alex Kompel [Wed, 17 Jun 2015 18:32:07 +0000 (11:32 -0700)]
win32_gui: load pile mark bitmap on startup

9 years agoLights are floaters
Pasi Kallinen [Wed, 17 Jun 2015 10:43:59 +0000 (13:43 +0300)]
Lights are floaters

From Boudewijn:
> y a light (tame yellow light called Snertkat) [seen: normal vision,
> infravision]
> Snertkat deliberately jumps onto a polymorph trap!

So make yellow and black lights floaters.

9 years agoMake #tip at a location which has multiple containers honor menustyle
PatR [Wed, 17 Jun 2015 02:23:43 +0000 (19:23 -0700)]
Make #tip at a location which has multiple containers honor menustyle
rather than always use a menu.  Only affects menustyle:traditional and
can be overridden at the time by using the 'm' prefix before the #tip
command.

When using the menu, add an explicit pick-from-inventory choice.  The
behavior there stays the same:  ask about inventory if no floor container
is chosen.

9 years agomajority opinion on cppregex.cpp declaration
nhmall [Wed, 17 Jun 2015 01:45:59 +0000 (21:45 -0400)]
majority opinion on cppregex.cpp declaration

9 years agoavoid complaints regarding "and" placement
nhmall [Wed, 17 Jun 2015 01:37:12 +0000 (21:37 -0400)]
avoid complaints regarding "and" placement

9 years agotribute bits
PatR [Tue, 16 Jun 2015 23:35:54 +0000 (16:35 -0700)]
tribute bits

Fix a couple of transcription typos and change the abbreviation of page
from 'pg.' to 'p.' since pg looks like it could refer to passage or
paragraph.

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Tue, 16 Jun 2015 10:34:05 +0000 (06:34 -0400)]
Merge branch 'master' into win32-x64-working

Conflicts:
include/flag.h

9 years agoupdate master's version of display.c
nhmall [Tue, 16 Jun 2015 10:23:28 +0000 (06:23 -0400)]
update master's version of display.c

Incorporate a few pieces of in-progress code into master
so that it isn't left in an odd state, thus prompting
patches.

9 years agorevert recent const addition in cppregex.cpp
nhmall [Tue, 16 Jun 2015 10:05:06 +0000 (06:05 -0400)]
revert recent const addition in cppregex.cpp

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Tue, 16 Jun 2015 09:59:07 +0000 (05:59 -0400)]
Merge branch 'master' into win32-x64-working

Conflicts:
src/display.c

9 years agoanother recent bit of lint
PatR [Tue, 16 Jun 2015 09:42:17 +0000 (02:42 -0700)]
another recent bit of lint

9 years agofinish implementing pmatchregex
PatR [Tue, 16 Jun 2015 09:29:22 +0000 (02:29 -0700)]
finish implementing pmatchregex

I started out cleaning up a bit of lint in the recent run-time options
handling and discovered that pmatchregex wasn't finished.  Finish it and
also deal with the version lint.  Argument declarations for function
definitions in pmatchregex.c have been switched to K&R style.  (The ones
in posixregex.c have been left in ANSI style.)

There wasn't any build rule for pmatchregex.o; now there is (for Unix).
posixregex.o is still the default.

There isn't any build rule for cppregex.o (again, for Unix); the change
to cppregex.cpp is untested.

9 years agofix another logic error for nowin_buf read_tribute
nhmall [Tue, 16 Jun 2015 03:28:41 +0000 (23:28 -0400)]
fix another logic error for nowin_buf read_tribute

9 years agologic bit
nhmall [Tue, 16 Jun 2015 02:44:38 +0000 (22:44 -0400)]
logic bit

Fix a logic mistake in the nowin_buf scenario
of read_tribute.

9 years agoa couple more tribute easter eggs
nhmall [Tue, 16 Jun 2015 02:22:56 +0000 (22:22 -0400)]
a couple more tribute easter eggs
 Changes to be committed:
modified:   include/context.h
modified:   include/extern.h
modified:   src/files.c
modified:   src/invent.c
modified:   src/sounds.c
modified:   src/spell.c

Add a couple more tribute easter eggs.

 - can lead to a remark by Death if you happen to have a pratchett book on
   your person, as suggested by M. Stephenson (fat chance you will, or
   think to #chat if you do, but it could be a tournament novelty or something
   obscure to strive for).
 - can draw some additional Death quotes from the tribute file. (There's two
   in there right now. If anyone wants to add or suggest some more, please go
   ahead. The Death quotes are at the end of the tribute file. One-liners
   only please or the code will only pull the last line.

9 years agotribute: Lords and Ladies
PatR [Tue, 16 Jun 2015 01:16:03 +0000 (18:16 -0700)]
tribute: Lords and Ladies

It's a lot of passages, even when leaving out ones about Cresote and
King Midas (or whatever name his Discworld analog has), Nanny Ogg's cat,
Ridcully's custom made wizard hat, and the mention of a law which
requires that bystanders be warned before commencing to play folk music.

9 years agorising from the dead during panic
PatR [Mon, 15 Jun 2015 22:47:47 +0000 (15:47 -0700)]
rising from the dead during panic

Prevent rising from the dead as a giant ant if the game panics during
initialization.

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Mon, 15 Jun 2015 20:49:31 +0000 (16:49 -0400)]
Merge branch 'master' into win32-x64-working

9 years ago#overview, level difficulty
PatR [Mon, 15 Jun 2015 01:14:14 +0000 (18:14 -0700)]
#overview, level difficulty

Three fixes, the first leading to the need to fix the second, and that
fix making dealing with the third be straightforward.

First, make the furthest level reached in any given branch be considered
interesting by #overview, even if no interesting features have been
encountered.  This will result in listing Gnomish Mines and their first
level when someone goes down the stairs and immediately back up.  It will
also produce a reminder of how far you've been--in each branch--after
retreating for any reason, without the need to manually add an annotation.

Second, #overview was suppressing the range of level numbers for Sokoban
because the author realized that the values were wrong.  The record of
the furthest level reached was incorrect for builds-up branches, always
sticking with the deepest level even though it was the entrance.  The
overview patch neglected to do the same suppression for Vlad's Tower and
the level range ("36 to 38" or similar) there was wrong.  This fixes the
furthest level reached problem and also fixes #overview's level range
handling for builds-up branches.

Third and last, a long-standing issue which I don't think has ever been
formally reported:  the level difficulty calculation used for monster
creation treated the upper (harder to get to) levels of builds-up branches
as if they were easier since they're closer to the surface as the gopher
burrows.  So sokoban generated easier monsters on its final level than on
the ones leading up to that.  Make depth for difficulty purposes account
for descent to the entrance and then ascent to the level of interest.

There was a distressing amount of trial and error involved.  The dungeon
layout structures are not exactly easy to work with, and I never managed
to get builds_up() based on branch data to work correctly.  Basing it on
dungeon data works as intended provided the branch has more than one
level, but it will yield incorrect result if we ever add a single-level
branch reached via stairs up rather than stairs down.

9 years agosome typos spotted in tribute
nhmall [Sun, 14 Jun 2015 23:59:37 +0000 (19:59 -0400)]
some typos spotted in tribute
 Changes to be committed:
modified:   dat/tribute

There are probably more.

9 years agomore pilemark tinkering
nhmall [Sun, 14 Jun 2015 23:27:28 +0000 (19:27 -0400)]
more pilemark tinkering

9 years agomistake in .uu file
nhmall [Sun, 14 Jun 2015 22:41:05 +0000 (18:41 -0400)]
mistake in .uu file
 Changes to be committed:
modified:   win/win32/pilemark.uu

9 years agotry to add pilemark support
nhmall [Sun, 14 Jun 2015 22:33:32 +0000 (18:33 -0400)]
try to add pilemark support
 Changes to be committed:
modified:   Files
modified:   sys/winnt/Makefile.msc
modified:   win/win32/mhmap.c
new file:   win/win32/pilemark.uu
modified:   win/win32/resource.h
modified:   win/win32/winMS.h
modified:   win/win32/winhack.rc

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Sun, 14 Jun 2015 20:46:41 +0000 (16:46 -0400)]
Merge branch 'master' into win32-x64-working

9 years agotribute formatting cleanup and additions
nhmall [Sun, 14 Jun 2015 19:57:19 +0000 (15:57 -0400)]
tribute formatting cleanup and additions
 Changes to be committed:
modified:   dat/tribute

I've also added some of Boudewijn's suggestions and
added his name in a comment for easy reference
when validating the content agains the book.

9 years agoFix the shapechanger fix again
Pasi Kallinen [Sun, 14 Jun 2015 08:48:10 +0000 (11:48 +0300)]
Fix the shapechanger fix again

9 years agoEnsure there are candles in Vlad's tower
Pasi Kallinen [Sun, 14 Jun 2015 07:58:55 +0000 (10:58 +0300)]
Ensure there are candles in Vlad's tower

9 years agoShapechangers got a completely random form
Pasi Kallinen [Sun, 14 Jun 2015 07:40:20 +0000 (10:40 +0300)]
Shapechangers got a completely random form

mtmp->cham was NON_PM, which select_newcham_form interpreted as a completely
random form.  This also resulted Vlad getting a random shape, and not getting
the Candelabrum, making the game unwinnable.

9 years agorolling back after criticism of approach
nhmall [Sun, 14 Jun 2015 02:31:31 +0000 (22:31 -0400)]
rolling back after criticism of approach

9 years agomore tribute fixup
nhmall [Sun, 14 Jun 2015 01:20:08 +0000 (21:20 -0400)]
more tribute fixup
One book had the top and bottom credits.

9 years agotypo on quote count for Reaper Man
nhmall [Sun, 14 Jun 2015 01:07:28 +0000 (21:07 -0400)]
typo on quote count for Reaper Man
 Changes to be committed:
modified:   dat/tribute

9 years agoavoid error
nhmall [Sun, 14 Jun 2015 00:59:40 +0000 (20:59 -0400)]
avoid error

The presence of [...] in middle of tribute quote
wasn't handle correctly in the new formatting code.

9 years agomore quotes - Reaper Man
nhmall [Sat, 13 Jun 2015 23:46:06 +0000 (19:46 -0400)]
more quotes - Reaper Man
 Changes to be committed:
modified:   dat/tribute

9 years agoEnsure more consistent formatting of tribute passages
nhmall [Sat, 13 Jun 2015 23:18:01 +0000 (19:18 -0400)]
Ensure more consistent formatting of tribute passages
 Changes to be committed:
modified:   src/files.c

9 years agostart new tribute content handling
nhmall [Sat, 13 Jun 2015 13:33:40 +0000 (09:33 -0400)]
start new tribute content handling

9 years agosupport for link-time option in #version
nhmall [Fri, 12 Jun 2015 23:23:18 +0000 (19:23 -0400)]
support for link-time option in #version
 Changes to be committed:
modified:   src/version.c
modified:   sys/share/cppregex.cpp
modified:   sys/share/pmatchregex.c
modified:   sys/share/posixregex.c
modified:   util/makedefs.c

Some options in 3.6.0 are determined by what you link with.
The choice of regex support is one.
Let #version show that linked option along with the compile-time options.

9 years agoMakefile typos in sys/winnt/Makfile.msc
nhmall [Fri, 12 Jun 2015 19:42:41 +0000 (15:42 -0400)]
Makefile typos in sys/winnt/Makfile.msc

9 years agoCopypaste mistake: Message types, not menu colors.
Pasi Kallinen [Fri, 12 Jun 2015 17:32:35 +0000 (20:32 +0300)]
Copypaste mistake: Message types, not menu colors.

9 years agobeta complaint 2 (again)
nhmall [Fri, 12 Jun 2015 17:11:10 +0000 (13:11 -0400)]
beta complaint 2 (again)

9 years agobeta complaint 2
nhmall [Fri, 12 Jun 2015 17:08:51 +0000 (13:08 -0400)]
beta complaint 2

9 years agobeta complaints 1
nhmall [Fri, 12 Jun 2015 16:59:30 +0000 (12:59 -0400)]
beta complaints 1

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Fri, 12 Jun 2015 11:12:10 +0000 (07:12 -0400)]
Merge branch 'master' into win32-x64-working

9 years agosome bk_glyph code iflags.use_background_glyph only
nhmall [Fri, 12 Jun 2015 11:10:46 +0000 (07:10 -0400)]
some bk_glyph code iflags.use_background_glyph only

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Fri, 12 Jun 2015 02:24:42 +0000 (22:24 -0400)]
Merge branch 'master' into win32-x64-working

Conflicts:
src/options.c

9 years agorole selection: priest/priestess' prompt
PatR [Fri, 12 Jun 2015 01:47:57 +0000 (18:47 -0700)]
role selection: priest/priestess' prompt

Change "Shall I pick your priest/priestess' race, gender, ..." prompt
to "... priest/priestess's ...".

Unfortunately that makes it long enough to push the cursor onto the
next line for basic 80 column display.  If caveman/cavewoman's wasn't
already longer I think I would have left the clumsier phrasing/spelling.

9 years agocharacteristics disclosure
PatR [Fri, 12 Jun 2015 01:19:09 +0000 (18:19 -0700)]
characteristics disclosure

Change end of game disclosure's display for strength, dexterity, &c to
always show the maximum possible value instead of only when the final
value was less than maximum.  For both end of game and ^X, change the
description from "limit" to "innate limit" if the current value exceeds
limit due to worn items (gauntlets of power, +N ring of adornment, &c).

9 years agopunctuation in failed messages
nhmall [Fri, 12 Jun 2015 01:11:41 +0000 (21:11 -0400)]
punctuation in failed messages

9 years agomore menustyle
PatR [Thu, 11 Jun 2015 21:09:17 +0000 (14:09 -0700)]
more menustyle

Make the list of menustyle values in the game match their order in the
revised documentation:  traditional, combination, full, partial.

9 years agomenustyle documentation
PatR [Thu, 11 Jun 2015 20:35:41 +0000 (13:35 -0700)]
menustyle documentation

Reorder the description of the values for the menustyle option, swapping
'full' and 'partial' since 'full' is closer in operation to 'combination'.

9 years agoRemove unused variable
Pasi Kallinen [Thu, 11 Jun 2015 16:36:08 +0000 (19:36 +0300)]
Remove unused variable

9 years agoFix unused variable thinko
Pasi Kallinen [Thu, 11 Jun 2015 16:34:49 +0000 (19:34 +0300)]
Fix unused variable thinko

9 years agoalter beta identifier
nhmall [Thu, 11 Jun 2015 12:25:56 +0000 (08:25 -0400)]
alter beta identifier

9 years agoback as it was except when iflags.use_background_glyph is set
nhmall [Thu, 11 Jun 2015 12:19:29 +0000 (08:19 -0400)]
back as it was except when iflags.use_background_glyph is set

9 years agoadd flag to allow conditional exec of related
nhmall [Thu, 11 Jun 2015 12:14:06 +0000 (08:14 -0400)]
add flag to allow conditional exec of related
 Changes to be committed:
modified:   include/flag.h
modified:   src/display.c
modified:   src/options.c

9 years agostop light penetration on sokoban, gehennom tiles
nhmall [Thu, 11 Jun 2015 11:27:08 +0000 (07:27 -0400)]
stop light penetration on sokoban, gehennom tiles
 Changes to be committed:
modified:   win/share/monsters.txt
modified:   win/share/objects.txt
modified:   win/share/other.txt

9 years agowin32_gui: "no flickering" patch broke text mode
Alex Kompel [Thu, 11 Jun 2015 06:33:22 +0000 (23:33 -0700)]
win32_gui: "no flickering" patch broke text mode

9 years agowin32_gui: correctly handle NO_GLYPH as backgroung glyph
Alex Kompel [Thu, 11 Jun 2015 06:12:18 +0000 (23:12 -0700)]
win32_gui: correctly handle NO_GLYPH as backgroung glyph

9 years agowin32_gui: flicker mitigation
Alex Kompel [Thu, 11 Jun 2015 02:18:56 +0000 (19:18 -0700)]
win32_gui: flicker mitigation
   - do not invalidate window area if tile has not actually changed
   - do not erase backround when invalidating the tile
   - use NO_GLYPH for uninitialized map areas (as opposed to -1)

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Thu, 11 Jun 2015 01:11:15 +0000 (21:11 -0400)]
Merge branch 'master' into win32-x64-working

9 years agomenucolors
nhmall [Thu, 11 Jun 2015 01:07:19 +0000 (21:07 -0400)]
menucolors

Error reported in display.c in current master code is gone,
but the menucolors stuff generated the following warnings when TEXTCOLOR wasn't defined.

..\win\tty\wintty.c(1688) : warning C4013: 'term_start_color' undefined; assuming extern returning int
..\win\tty\wintty.c(1711) : warning C4013: 'term_end_color' undefined; assuming extern returning int

9 years agopunctuation in dat/tribute
nhmall [Thu, 11 Jun 2015 00:52:03 +0000 (20:52 -0400)]
punctuation in dat/tribute

9 years agoactual field is always around anyway
nhmall [Thu, 11 Jun 2015 00:48:29 +0000 (20:48 -0400)]
actual field is always around anyway
 Changes to be committed:
modified:   include/flag.h

9 years agomore tribute quotes
nhmall [Thu, 11 Jun 2015 00:36:17 +0000 (20:36 -0400)]
more tribute quotes
 Changes to be committed:
modified:   dat/tribute

9 years agotribute passage 'summary'
PatR [Wed, 10 Jun 2015 23:23:19 +0000 (16:23 -0700)]
tribute passage 'summary'

When reading a passage from a tribute novel, put the final attribution
line "[$TITLE, by Terry Pratchett]" into message history, comparable to
the summary line for deliver-by-window quest messages.

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Wed, 10 Jun 2015 23:19:37 +0000 (19:19 -0400)]
Merge branch 'master' into win32-x64-working

Conflicts:
src/display.c

9 years agoFiles didn't match sys/unix/hints
nhmall [Wed, 10 Jun 2015 23:15:36 +0000 (19:15 -0400)]
Files didn't match sys/unix/hints
 Changes to be committed:
modified:   Files

9 years agoMerge branch 'macosx-build'
nhmall [Wed, 10 Jun 2015 22:57:23 +0000 (18:57 -0400)]
Merge branch 'macosx-build'

9 years agoanother punctuation bit
nhmall [Wed, 10 Jun 2015 12:10:56 +0000 (08:10 -0400)]
another punctuation bit

9 years agopunctuation bit
nhmall [Wed, 10 Jun 2015 12:09:03 +0000 (08:09 -0400)]
punctuation bit

9 years agomore quotes from books without quotes
nhmall [Wed, 10 Jun 2015 11:56:12 +0000 (07:56 -0400)]
more quotes from books without quotes

9 years agocommit out NO_GLYPH return until win32 supports it
nhmall [Wed, 10 Jun 2015 08:35:05 +0000 (04:35 -0400)]
commit out NO_GLYPH return until win32 supports it
 Changes to be committed:
modified:   src/display.c

9 years agoMerge branch 'background_tiles' into win32-x64-working
nhmall [Wed, 10 Jun 2015 08:18:44 +0000 (04:18 -0400)]
Merge branch 'background_tiles' into win32-x64-working

Conflicts:
src/display.c

9 years agomore background tile work
nhmall [Wed, 10 Jun 2015 08:13:13 +0000 (04:13 -0400)]
more background tile work

- newsym() should always show glyph even if foreground glyph has not changed
- get_bk_glyph should operate on type of floor not on type of glyph.

9 years agotribute: The Last Hero
PatR [Wed, 10 Jun 2015 07:54:07 +0000 (00:54 -0700)]
tribute: The Last Hero

Flesh out _The_Last_Hero_.  Due to its publishing history (no ordinary
paperback, some lists of "other books by this author" miscategorize it
as being co-written by the illustrator) it's most likely not as widely
read as the other Discworld books.

9 years agouse NO_GLYPH as an indicator to ignore background glyph
nhmall [Wed, 10 Jun 2015 01:56:28 +0000 (21:56 -0400)]
use NO_GLYPH as an indicator to ignore background glyph
 Changes to be committed:
modified:   doc/window.doc
modified:   src/display.c

9 years agoMerge branch 'master' into win32-x64-working
nhmall [Wed, 10 Jun 2015 01:41:49 +0000 (21:41 -0400)]
Merge branch 'master' into win32-x64-working

Conflicts:
src/display.c

9 years agoMerge branch 'master' into background_tiles
nhmall [Wed, 10 Jun 2015 01:38:21 +0000 (21:38 -0400)]
Merge branch 'master' into background_tiles

Conflicts:
src/display.c

9 years agodefault to original background
nhmall [Wed, 10 Jun 2015 01:33:08 +0000 (21:33 -0400)]
default to original background
 Changes to be committed:
modified:   src/display.c

The work for getting this working fully is now moving to the background_tiles branch.
In master, we just return the standard lit room tile for now, no change in behavior.
No ports utilize the new parameter as yet.

9 years agoX11: Hilight piles of objects
Pasi Kallinen [Tue, 9 Jun 2015 16:59:38 +0000 (19:59 +0300)]
X11: Hilight piles of objects

9 years agowin32_gui: improve logDebug performance
Alex Kompel [Tue, 9 Jun 2015 15:53:21 +0000 (08:53 -0700)]
win32_gui: improve logDebug performance

9 years agowin32_gui: implement background glyph rendering
Alex Kompel [Tue, 9 Jun 2015 15:34:11 +0000 (08:34 -0700)]
win32_gui: implement background glyph rendering
           try to use system TrasnparentBlt (or not)

9 years agoAdd the mapglyph special flags to window doc
Pasi Kallinen [Tue, 9 Jun 2015 14:46:30 +0000 (17:46 +0300)]
Add the mapglyph special flags to window doc

9 years agoTTY: Hilight piles of objects
Pasi Kallinen [Tue, 9 Jun 2015 13:54:44 +0000 (16:54 +0300)]
TTY: Hilight piles of objects

Add MG_OBJPILE flag, which windowports can use to check if a location
has more than one object stack. If use_inverse is on, TTY will use
inverse to show such piles.  If a boulder is the topmost item on a pile,
then the object pile flag is not used; mainly because boulders are "solid",
boulders dropped by monsters are nearly always over other objects, and so
that special levels such a Sokoban can "hide" items under the boulders.

TODO: a "pilemark", analogous to "petmark", perhaps a green plus sign,
which can be used by windowports with tiles.

9 years agomany contributors to this please
nhmall [Tue, 9 Jun 2015 09:29:25 +0000 (05:29 -0400)]
many contributors to this please
 Changes to be committed:
modified:   doc/Guidebook.mn
modified:   doc/Guidebook.tex

9 years agomore refinement of background glyph
nhmall [Tue, 9 Jun 2015 08:54:19 +0000 (04:54 -0400)]
more refinement of background glyph
 Changes to be committed:
modified:   src/display.c

9 years agobe more discerning on the backgrounds presented
nhmall [Tue, 9 Jun 2015 08:35:05 +0000 (04:35 -0400)]
be more discerning on the backgrounds presented
 Changes to be committed:
modified:   src/display.c

9 years agoMerge branch 'master' into AlexK-misc
nhmall [Tue, 9 Jun 2015 01:11:54 +0000 (21:11 -0400)]
Merge branch 'master' into AlexK-misc

9 years agoprovide bkglyphs
nhmall [Tue, 9 Jun 2015 00:10:43 +0000 (20:10 -0400)]
provide bkglyphs
 Changes to be committed:
modified:   src/display.c

9 years agoModify the window interface for print_glyph
nhmall [Mon, 8 Jun 2015 23:37:26 +0000 (19:37 -0400)]
Modify the window interface for print_glyph

 Changes to be committed:
modified:   doc/window.doc
modified:   include/qt_win.h
modified:   include/trampoli.h
modified:   include/winX.h
modified:   include/wingem.h
modified:   include/winprocs.h
modified:   include/wintty.h
modified:   src/display.c
modified:   src/windows.c
modified:   sys/amiga/winami.p
modified:   sys/amiga/winfuncs.c
modified:   sys/amiga/winproto.h
modified:   sys/wince/mswproc.c
modified:   sys/wince/winMS.h
modified:   win/Qt/qt_win.cpp
modified:   win/X11/winmap.c
modified:   win/chain/wc_chainin.c
modified:   win/chain/wc_chainout.c
modified:   win/chain/wc_trace.c
modified:   win/gem/wingem.c
modified:   win/gem/wingem1.c
modified:   win/gnome/gnbind.c
modified:   win/tty/wintty.c
modified:   win/win32/mswproc.c
modified:   win/win32/winMS.h

print_glyph now takes a second parameter.

Tiles on tiled ports always looked odd on places like the plane of air
where the background color of the tile didn't match the general background
of the surrounding area.

3.6 made that even worse and more glaringly noticeable with the introduction
of darkened room tiles.

The code to actually send something useful through the new parameter
for window ports to take advantage if they want will follow.

9 years agoUse MAKE variable instead of hardcoding make
Pasi Kallinen [Sat, 6 Jun 2015 17:25:32 +0000 (20:25 +0300)]
Use MAKE variable instead of hardcoding make

9 years agoChatting with priest converted to minion crashes the game (few code paths in priest_t...
Alex Kompel [Sat, 6 Jun 2015 15:16:30 +0000 (08:16 -0700)]
Chatting with priest converted to minion crashes the game (few code paths in priest_talk() assumed the priest has an altar)

9 years agolookat again
PatR [Sat, 6 Jun 2015 06:37:02 +0000 (23:37 -0700)]
lookat again

Remove second 'alt_i' initialization, which was first in implementation.
Superseded by the preceding line, which came later.  Works either way,
but the conditional initalization avoids the two extra loop iterations
when they're not useful.

9 years agolookat issues for unknown/solid rock/dark room
PatR [Sat, 6 Jun 2015 03:19:18 +0000 (20:19 -0700)]
lookat issues for unknown/solid rock/dark room

Fix two things with the ';' and '/' commands, both for looking at blank
space.  The list of possibilies included "a dark part of a room or the
dark part of a room" even though the code involved goes out of its way
to avoid redundant clauses.  S_stone let dark part be prefixed by 'a',
S_room and S_darkroom forced it to be 'the' which is better phrasing
but outsmarted the redundancy check.  Make S_stone's use of "dark part
of a room" force 'the' too.

That's trivial; this is more complicated:  the new maze variations
exposed/aggravated an issue that's been there all along.  In a non-
WALLIFIED maze, doing look-at on the solid stone in-place-of-wall
next to you reported "dark part of a room" which is clearly wrong when
you can tell it's not a room.  (The same thing happens in any ordinary
corridor, but players rarely try to identify blank space next to them
it that circumstance so it hasn't mattered very much.)  This change
results in look-at listing "unexplored" and "stone" as additional
possibilities when looking at blank spots.  Final description will be
"unexplored" instead of dark room if you haven't seen the spot, "stone"
if you have and that's what it is, or "dark part of a room" otherwise.

9 years agoremove use of __FUNCTION__
PatR [Sat, 6 Jun 2015 01:18:19 +0000 (18:18 -0700)]
remove use of __FUNCTION__

The special level loader has been using __FUNCTION__ in error messages
for a few months now, but that is a gcc extension (evidently picked up
by other compilers since only Borland had an issue so far).  The
standard way to do the same thing is with __func__, but that's C99 so
we should avoid it.  (__FUNCTION__ came earlier; gcc supports both.)

This switches to convential C code to achieve the same effect, using
the name 'nhFunc' rather than __FUNCTION__:
  void foo()
  {
    static const char nhFunc[] = "foo";
    ... code that might report problem in nhFunc ...
    return;
  }
This has only been added to the functions which actually reference it,
not a blanket intrusion into every routine.  In special level loader's
case, the reference is hidden in the opvar_free() macro which is used
quite a lot.

At first I used a macro:
  void foo()
  {
  #define nhFunc "foo"
    ... code that might report problem in nhFunc ...
    return;
  #undef nhFunc
  }
but using an actual variable avoids duplicate copies of the function
name string when used more than once inside a given function, and it
can't accidentally carry over into the next function due to missing or
misspelled #undef.

If we someday switch alloc() to give more specific information than
__FILE__, the macro variation would be better since the function name
won't be used most of the time (ie, when MONITOR_HEAP isn't defined).

9 years agohint file for macosx10.10
Haoyang Wang [Fri, 24 Apr 2015 22:25:29 +0000 (15:25 -0700)]
hint file for macosx10.10

9 years agoadd /usr/X11R6/include to the include paths
Haoyang Wang [Fri, 24 Apr 2015 22:22:18 +0000 (15:22 -0700)]
add /usr/X11R6/include to the include paths

9 years agoRemove extraneous line from linux-X11 hints file
Pasi Kallinen [Fri, 5 Jun 2015 17:42:00 +0000 (20:42 +0300)]
Remove extraneous line from linux-X11 hints file