From ee653d2656b747a8b8426fafc55c7c1cff008871 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 7 Jun 2007 17:32:26 +0000 Subject: Added support for Unicode characters in the map display with ncursesw (enabled by setting UNICODE_GLYPHS=y in makefile.unix). Removed the (1,1) offset between map and grid. Both map and grid are now in sync. Store object indexes instead of raw characters in env.map so that players can change charsets and have the display update immediately. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1552 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 2e4ec6c9d9..68dc9424b2 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -835,23 +835,14 @@ static void close_level_gates() static void clear_env_map() { - for (int i = 0; i < GXM; i++) - { - for (int j = 0; j < GYM; j++) - { - env.map[i][j] = 0; - env.map_col[i][j].clear(); - } - } + env.map.init(map_cell()); } static void clear_clouds() { for (int clouty = 0; clouty < MAX_CLOUDS; ++clouty) delete_cloud( clouty ); - for (int i = 0; i < GXM; i++) - for (int j = 0; j < GYM; j++) - env.cgrid[i][j] = EMPTY_CLOUD; + env.cgrid.init(EMPTY_CLOUD); } static void grab_followers(std::vector& followers) -- cgit v1.2.3-54-g00ecf