git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10625 c06c8d41-db1a-0410-9941-cceddc491573
NLJB2EZV4ZKPURL76VODEIUXMZZQHUGUCOU3B3TA76SX2ZQPWZPAC const bool seen = see_grid(c);const int grid = ((seen || ignore_terrain_knowledge) ? grd(c): get_envmap_obj(c));
// [dshaligram] At this point we're guaranteed to know the terrain (see// check ^^^), which means we know what dungeon feature is here. Thus it's// safe to use the actual dungeon feature directly.const dungeon_feature_type grid = grd(c);// Also make note of what's displayed on the level map for// plant/fungus checks.const int levelmap_object = get_envmap_obj(c);
&& (seen || grid > DNGN_START_OF_MONSTERS)&& _is_monster_blocked(c))
&& levelmap_object >= DNGN_START_OF_MONSTERS&& _is_monster_blocked(c)// _is_monster_blocked can only return true if monster_at(c) != NULL&& monster_at(c)->type == levelmap_object - DNGN_START_OF_MONSTERS)