summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-15 21:02:10 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-15 23:11:41 +0100
commitc6c0a0f71e0d459b8438ff2e998fbedcb9c1c99a (patch)
treea4627549b720ad516782e258ceb3e6d0aa080be9 /crawl-ref
parentd1f82e784c32498df38ba9f9287b86163af73768 (diff)
downloadcrawl-ref-c6c0a0f71e0d459b8438ff2e998fbedcb9c1c99a.tar.gz
crawl-ref-c6c0a0f71e0d459b8438ff2e998fbedcb9c1c99a.zip
Remove grid_character_at.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/chardump.cc2
-rw-r--r--crawl-ref/source/showsymb.cc9
-rw-r--r--crawl-ref/source/showsymb.h1
3 files changed, 1 insertions, 11 deletions
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);