terrain.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6419 c06c8d41-db1a-0410-9941-cceddc491573
JE3SMK7MKFSSNBOPA5RITTF5WOQSSAGUPUO3C2QHFOHA77IPAD3AC
4RRUNGCGJO7KZISXL62B3NXZ354DH3VHSI7TDTIHGH5NDEJHHLQQC
ZPVYNSSYTPSFARZJP4PDNHWUXXJTX73X2HGWP2QZFQ6YD6X5UAJAC
SEYFLCMBTBFOX6UL76JKYIXN7PSORCCUXUMU2YPW3IKZ3655ZRNAC
PDOFPXD2X6VI23AHKCGQ5RVDBG74CNP2E3YOHKXLOARHHBXEK3HQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
KATZLWENEIQMKKWIV4ZLXJ5HFUW6SU5K4ZU6NENBOL4XAAVTDUKAC
3V52MSSK7QX7FWLLUW63DTWCBAJEK674EFZLKP45FLZ5KZKVARHAC
247OW5JFN34ZV3GRVHRE25AXLLISUBPOX5YRGUE64BCM2V7QNEHAC
O5DY2ABCK6UTDJUUQULQERVXLV35IP74NTLYXNMKXCH6UFGYLKWQC
NCRXRQNCAMQQOZCL7TBMKGM6TOGDAHR3GRXAVVB26FLGE2KUZC2QC
OSGS3PH2L5CBTDVZCZS6OCFQNA4A7RMEXBYJQB7DDZBYYJW7QSSAC
WT66JDIRTLLP37SHTV4GI3V64JFJ4D25LNRLGCHFG6CLEFKJ3QGQC
ZGUJWUFJ4NFFJ6PGXLFGQWCWBCZHPWGWI44NJHJEVPRG5L36PADQC
else if (num_creatures == known_plants)
else if (num_creatures == prev_detected)
{
// This is not strictly true. You could have cast
// Detect Creatures with a big enough fuzz that the detected
// glyph is still on the map when the original one has been
// killed. Then another one is spawned, so the number is
// the same as before. There's no way we can check this however.
if (map_bounds(gx, gy)
// If the player would be able to see a monster at this location
// don't place it there.
if (see_grid(gx, gy))
continue;
// Try not to overwrite another detected monster.
if (is_envmap_detected_mons(gx, gy))
continue;
// Don't print monsters on terrain they cannot pass through,
// not even if said terrain has since changed.
if (map_bounds(gx, gy) && !is_terrain_changed(gx, gy)