summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-19 20:35:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-19 20:35:24 +0000
commit467446254ef22c7d361764d1244a8d83fd285f95 (patch)
treebe45f553eae1bc1664d07980806537a2c78d2482 /crawl-ref/source/libgui.cc
parentb305accdee3ce085e65639f874e59f9592f234d3 (diff)
downloadcrawl-ref-467446254ef22c7d361764d1244a8d83fd285f95.tar.gz
crawl-ref-467446254ef22c7d361764d1244a8d83fd285f95.zip
Fix non-tile compile of tutorial.cc (whoops!)
Add messages when entering or leaving the level map ('X') in tiles. First attempts at outlining icons via cursor in tile tutorial. (Currently this only works for monsters, though I'm not sure why...) And some code clean-up for tiles and the tutorial. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3301 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 6817a9db38..3baa8fb27d 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -323,7 +323,9 @@ void GmapUpdate(int x, int y, int what, bool upd_tile)
c = MAP_WHITE; // player position always in white
else if (mgrd[x][y] != NON_MONSTER && mons_friendly(&menv[mgrd[x][y]])
&& upd_tile)
+ {
c = MAP_LTRED; // friendly monsters subtly different from hostiles
+ }
else
{
const coord_def gc(x,y);
@@ -423,11 +425,10 @@ void GmapDisplay(int linex, int liney)
for (y = gmap_min_y; y <= gmap_max_y; y++)
{
- for (x = gmap_min_x; x <= gmap_max_x; x++)
+ for (x = gmap_min_x; x <= gmap_max_x; x++, count++)
{
if ( (count>=0)&&(count<GXM*GYM) )
buf2[count] = gmap_data[x][y];
- count += 1;
}
count += GXM - (gmap_max_x - gmap_min_x + 1);
}