monsters weren't placed near the player, they'd all be placed at the same location, causing "floating monster" errors. Place them all near that same location instead, and check for terrain the monster can inhabit instead of just floor.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9298 c06c8d41-db1a-0410-9941-cceddc491573
THSEYQZ4KVU6WF2AXH6XBPAIX7PQVJ455MNPFEXHXQA4LLCYIPCQC
TY33BSNJWG6DYLBARYXL72GPP7MZRA3QTG3A6H2OVUKW5QK7TH3AC
TPQPFPC3AZVMTVG6YS3G7NGSNNBGYY2NYTB36WZJNIGHHMWBABXAC
475LL4U4ND6PTNV4XKC7WQAOJC7RF2VCCVX3DRILP2PKIBFYWE6QC
7KWDC7XFNMBLSUO2HISIROBINZBX5T67LJEEXTAORXW2YZ7VWFGAC
HB27XKFYVYIEQZGBCEZ6LKPUBMXLIPDAAS636GJ5TULIQ7KND5KQC
Y4WR4EIOFFXHRQI2PJAZWD4MVL6A7MNBHLN4KOV6BIKGGA7FXQTQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
7AMQN7MITMXBNVDAK5VOXTQ4TZIAOD6ZLOFJG7GQMBTY23Y2BKSAC
if (where_to_go == you.pos())
near_player = true;
else
{
m.moveto(where_to_go);
mgrd(where_to_go) = m.mindex();
placed = true;
}
mgrd(m.pos()) = m.mindex();
placed = true;