diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-09-27 22:29:43 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-06 17:25:29 +0200 |
commit | 98a1e903da70af439ccc66120fd721401bd5b6e3 (patch) | |
tree | 94ac1a309c3b1afe2f91e967898e635723663e3e /crawl-ref/source/terrain.cc | |
parent | 357ace6f451882e1fc1aadbeebac1e7b89bc714e (diff) | |
download | crawl-ref-98a1e903da70af439ccc66120fd721401bd5b6e3.tar.gz crawl-ref-98a1e903da70af439ccc66120fd721401bd5b6e3.zip |
Use inclusive bounds for grid_is_{solid,opaque}.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r-- | crawl-ref/source/terrain.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc index ad8ace64e9..cdd0ef6a43 100644 --- a/crawl-ref/source/terrain.cc +++ b/crawl-ref/source/terrain.cc @@ -186,12 +186,12 @@ command_type grid_stair_direction(dungeon_feature_type grid) bool grid_is_opaque(dungeon_feature_type grid) { - return (grid < DNGN_MINSEE); + return (grid <= DNGN_MAXOPAQUE); } bool grid_is_solid(dungeon_feature_type grid) { - return (grid < DNGN_MINMOVE); + return (grid <= DNGN_MAXSOLID); } bool grid_is_solid(int x, int y) |