bat: placement option for tunnel only

epoxy
Maikel de Vries 2016-02-04 13:31:44 +01:00
parent ca3bf5e5cd
commit e4095fb77b
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ private func Place(int amount, proplist rectangle, proplist settings)
loc_area = Loc_InArea(rectangle);
var bats = [];
var loc_bkg = Loc_Tunnel();
if (Time->IsNight())
// Place in sky as well if at night unless tunnel only is required.
if (Time->IsNight() && (!settings || !settings.tunnel_only))
loc_bkg = Loc_Or(Loc_Tunnel(), Loc_Sky());
while ((amount > 0) && (--max_tries > 0))