Mapgen: Don't spread light of nodes outside the desired area
authorkwolekr <kwolekr@minetest.net>
Wed, 30 Mar 2016 03:59:39 +0000 (23:59 -0400)
committerkwolekr <kwolekr@minetest.net>
Wed, 30 Mar 2016 04:19:03 +0000 (00:19 -0400)
commit0115da1d6348a08388238d8728daaa048a603522
treec34469f7d88cd587a224fed82bc398905c507b15
parent597c1d73da38ab299eb440a3429fce04da10cf05
Mapgen: Don't spread light of nodes outside the desired area

This fixes #3935, a regression from 0338c2e.
An 'optimization' was performed where an index for the VoxelManip being
operated on was mistakenly used for bounds checking within the incorrect
VoxelArea, namely, the area wherein light should be spread.
src/mapgen.cpp