Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapgen: Spread both night and day light banks in spreadLight #3932

Closed
wants to merge 1 commit into from

Conversation

kwolekr
Copy link
Contributor

@kwolekr kwolekr commented Mar 29, 2016

This fixes #3930.

@paramat paramat added this to the 0.4.14 milestone Mar 29, 2016
@paramat
Copy link
Contributor

paramat commented Mar 29, 2016

Will test with a lua mapgen.


// Bail out only if we have no more light from either bank to propogate, or
// we hit a solid block that light cannot pass through.
if ((light_day <= (n.param1 & 0x0F) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double space.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aware, did that so the <= lines up with the one below it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@paramat
Copy link
Contributor

paramat commented Mar 29, 2016

👍 Tested with noisegrid mod and works.

@kwolekr
Copy link
Contributor Author

kwolekr commented Mar 29, 2016

0338c2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No light spread at night in lua mapgens
2 participants