From c6c0a0f71e0d459b8438ff2e998fbedcb9c1c99a Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 15 Nov 2009 21:02:10 +0100 Subject: Remove grid_character_at. --- crawl-ref/source/chardump.cc | 2 +- crawl-ref/source/showsymb.cc | 9 --------- crawl-ref/source/showsymb.h | 1 - 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 0bd6768184..20100ace55 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -1274,7 +1274,7 @@ void dump_map(FILE *fp, bool debug) else if (grd[x][y] == DNGN_FLOOR_SPECIAL) fputc('?', fp); else - fputc(grid_character_at(coord_def(x,y)), fp); + fputc(get_feature_def(grd[x][y]).symbol, fp); } fputc('\n', fp); } diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index 858814664a..c2e67d171f 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -65,15 +65,6 @@ void get_show_symbol(show_type object, unsigned *ch, *colour = real_colour(*colour); } -unsigned grid_character_at(const coord_def &c) -{ - unsigned glych; - unsigned short glycol = 0; - - get_symbol(c, grd(c), &glych, &glycol); - return glych; -} - int get_mons_colour(const monsters *mons) { int col = mons->colour; diff --git a/crawl-ref/source/showsymb.h b/crawl-ref/source/showsymb.h index b44612ec40..85d1593523 100644 --- a/crawl-ref/source/showsymb.h +++ b/crawl-ref/source/showsymb.h @@ -18,7 +18,6 @@ unsigned get_screen_glyph( const coord_def &p ); int get_mons_colour(const monsters *mons); -unsigned grid_character_at(const coord_def &c); void get_symbol(const coord_def& where, show_type object, unsigned *ch, unsigned short *colour); -- cgit v1.2.3-54-g00ecf