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

Lighting glitch since "Variable name fix + structure creation unrolling in lighting code" #7118

Closed
mtango688 opened this issue Mar 10, 2018 · 6 comments
Labels
Blocker The issue needs to be addressed before the next release. Bug Issues that were confirmed to be a bug @ Server / Client / Env.

Comments

@mtango688
Copy link
Contributor

Issue type
  • Bug report
Minetest version
See the screenshots (bcdb3d5)
OS / Hardware

Operating system:
CPU: AMD

GPU model: nVidia 1050
OpenGL version: ?

Summary

When using commit bcdb3d5 or newer, changes to mesecon (powerred/unpowered) causes other lights nearby to lose their spread.

Steps to reproduce

Create a new world with Minetest_game and add Mesecons as a mod.
Change to night and place torches and mesecons.
Change the state of the mesecons.
before
after

@rubenwardy
Copy link
Member

rubenwardy commented Mar 10, 2018

May be this line: bcdb3d5#diff-d8d3b69601fbe8b3c44441473970f0a0R1117

Try changing to

const ContentFeatures &newf = ndef->get(newnode);

@mtango688
Copy link
Contributor Author

I don't think so. It's probably better if you can observe the bug first-hand.

@rubenwardy
Copy link
Member

rubenwardy commented Mar 10, 2018

Can confirm that bcdb3d5 is the first bad commit. @nerzhul

@rubenwardy rubenwardy added Bug Issues that were confirmed to be a bug @ Server / Client / Env. Blocker The issue needs to be addressed before the next release. labels Mar 10, 2018
@rubenwardy rubenwardy changed the title Lighting glitch since bcdb3d5 when using Mesecons Lighting glitch since "Variable name fix + structure creation unrolling in lighting code" when using Mesecons Mar 10, 2018
@rubenwardy rubenwardy changed the title Lighting glitch since "Variable name fix + structure creation unrolling in lighting code" when using Mesecons Lighting glitch since "Variable name fix + structure creation unrolling in lighting code" Mar 10, 2018
@nOOb3167
Copy link
Contributor

typo, Y instead of Z

MapNode node = block->getNodeNoCheck(relpos.X, relpos.Y, relpos.Y, &is_valid);

MapNode node = block->getNodeNoCheck(relpos.X, relpos.Y, relpos.Z, &is_valid);

seems to resolve the issue

unavoidable considering all the XYZ soup - did not notice until the 3rd readthrough.

@SmallJoker
Copy link
Member

@nOOb3167 Thanks for your research. This issue is now fixed: ee20433

@nerzhul
Copy link
Member

nerzhul commented Mar 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker The issue needs to be addressed before the next release. Bug Issues that were confirmed to be a bug @ Server / Client / Env.
Projects
None yet
Development

No branches or pull requests

5 participants