Fix compiler warnings in macos build.

This commit is contained in:
Bart House
2018-11-23 12:27:55 -08:00
parent cff9fb441a
commit 0d59f1a22b
8 changed files with 47 additions and 46 deletions

View File

@@ -1156,10 +1156,10 @@ int x,y;
int tx = u.tx;
int ty = u.ty;
boolean ret;
int g = glyph_at(x,y);
int glyph = glyph_at(x,y);
if (x == u.ux && y == u.uy)
return TRUE;
if (isok(x,y) && glyph_is_cmap(g) && S_stone == glyph_to_cmap(g)
if (isok(x,y) && glyph_is_cmap(glyph) && S_stone == glyph_to_cmap(glyph)
&& !levl[x][y].seenv)
return FALSE;
u.tx = x;