From e65f11731155dec69701d806ba00c6bd24ffc33c Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Thu, 24 Sep 2009 20:18:07 +0530 Subject: Set up a basic testing framework for LOS. ./crawl -test with a full debug build will run the test. --- crawl-ref/source/chardump.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/chardump.cc') diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 097932a3c0..be0b4d43aa 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -1207,7 +1207,14 @@ void dump_map(FILE *fp, bool debug) for (int y = 0; y < GYM; ++y) { for (int x = 0; x < GXM; ++x) - fputc(grid_character_at(coord_def(x,y)), fp); + { + if (you.pos() == coord_def(x, y)) + fputc('@', fp); + else if (grd[x][y] == DNGN_FLOOR_SPECIAL) + fputc('?', fp); + else + fputc(grid_character_at(coord_def(x,y)), fp); + } fputc('\n', fp); } } -- cgit v1.2.3-54-g00ecf