use NO_GLYPH as an indicator to ignore background glyph
Changes to be committed: modified: doc/window.doc modified: src/display.c
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
NetHack 3.6 window.doc $NHDT-Date: 1433806574 2015/06/08 23:36:14 $ $NHDT-Branch: master $:$NHDT-Revision: 1.40 $
|
||||
NetHack 3.6 window.doc $NHDT-Date: 1433901374 2015/06/10 01:56:14 $ $NHDT-Branch: master $:$NHDT-Revision: 1.42 $
|
||||
|
||||
Introduction
|
||||
|
||||
@@ -200,7 +200,8 @@ print_glyph(window, x, y, glyph, bkglyph)
|
||||
-- bkglyph is a background glyph for potential use by some
|
||||
graphical or tiled environments to allow the depiction
|
||||
to fall against a background consistent with the grid
|
||||
around x,y.
|
||||
around x,y. If bkglyph is NO_GLYPH, then the parameter
|
||||
should be ignored (do nothing with it).
|
||||
|
||||
char yn_function(const char *ques, const char *choices, char default)
|
||||
-- Print a prompt made up of ques, choices and default.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 display.c $NHDT-Date: 1433899975 2015/06/10 01:32:55 $ $NHDT-Branch: master $:$NHDT-Revision: 1.61 $ */
|
||||
/* NetHack 3.6 display.c $NHDT-Date: 1433901380 2015/06/10 01:56:20 $ $NHDT-Branch: master $:$NHDT-Revision: 1.62 $ */
|
||||
/* Copyright (c) Dean Luick, with acknowledgements to Kevin Darcy */
|
||||
/* and Dave Cohrs, 1990. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1700,7 +1700,7 @@ xchar x, y;
|
||||
* squares and the plane of air etc.
|
||||
*
|
||||
* Until that is working correctly in the branch, however, for now
|
||||
* we just return the standard lit room background.
|
||||
* we just return NO_GLYPH as an indicator to ignore it.
|
||||
*/
|
||||
|
||||
STATIC_OVL int
|
||||
@@ -1708,9 +1708,9 @@ get_bk_glyph(x,y)
|
||||
xchar x, y;
|
||||
{
|
||||
int retglyph = NO_GLYPH;
|
||||
struct rm *lev = &levl[x][y];
|
||||
/* struct rm *lev = &levl[x][y]; */
|
||||
|
||||
return cmap_to_glyph(S_room);
|
||||
return retglyph;
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user