Mgv7: Avoid mid-air spawn on disabled mountain terrain, optimise function
authorparamat <mat.gregory@virginmedia.com>
Mon, 26 Sep 2016 22:21:33 +0000 (23:21 +0100)
committerparamat <mat.gregory@virginmedia.com>
Fri, 30 Sep 2016 17:56:39 +0000 (18:56 +0100)
commit56ea77ea96b62059c03ba53c15da56c72ea7e140
tree093d8427da24e6cee15096272274271241fdb6d2
parent33a606c034a6dfea4a011b6d69077455bbb56746
Mgv7: Avoid mid-air spawn on disabled mountain terrain, optimise function

'getSpawnLevelAtPoint()' did not account for disabled mountains, it
was possible to be spawned in mid-air where a mountain surface would
have been.

Avoid check for river area if rivers are disabled.
src/mapgen_v7.cpp