summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-06 14:52:40 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-06 14:52:40 +0000
commit5f7dbb1623f8ed4c8fdf2a1a5a7427d9fe78f88a (patch)
treedf05954106f82999cac6a1a08cf7cd8370cad94b /crawl-ref/source/libgui.cc
parente47ff61f0c964c045c99cb4c36dd8070ba9c7729 (diff)
downloadcrawl-ref-5f7dbb1623f8ed4c8fdf2a1a5a7427d9fe78f88a.tar.gz
crawl-ref-5f7dbb1623f8ed4c8fdf2a1a5a7427d9fe78f88a.zip
Fixing assertions from tileidx_unseen due to separation of tiles into different textures.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6893 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 2c2befc188..9176d7df09 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -56,9 +56,12 @@ int tile_idx_unseen_terrain(int x, int y, int what)
unsigned short grid_color;
get_item_symbol(feature, &grid_symbol, &grid_color);
- int t = tileidx_feature(feature, gc.x, gc.y);
+ unsigned int t = tileidx_feature(feature, gc.x, gc.y);
if (t == TILE_ERROR || what == ' ')
- t = tileidx_unseen(what, gc);
+ {
+ unsigned int fg_dummy;
+ tileidx_unseen(fg_dummy, t, what, gc);
+ }
t |= tile_unseen_flag(gc);
@@ -146,7 +149,7 @@ void get_input_line_gui(char *const buff, int len)
len = 1;
/* Restrict the length */
- if (x + len > r->mx)
+ if (x + len > (int)r->mx)
len = r->mx - x;
if (len > 40)
len = 40;