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

Error when trying to dig very deep #65

Open
EdgeKing810 opened this issue Sep 25, 2021 · 1 comment
Open

Error when trying to dig very deep #65

EdgeKing810 opened this issue Sep 25, 2021 · 1 comment

Comments

@EdgeKing810
Copy link

Hello,
When I try to dig downwards, after many blocks, there's the following error and the game crashes:

game: src/world/world.c:191: void world_heightmap_recalculate(struct World *, ivec2s): Assertion `world_in_bounds(self, (ivec3s) {{ p.x, 0, p.y }})' failed.
[1]    1085200 abort (core dumped)  ./bin/game
@rachit7645
Copy link

I think that your y value goes below zero, since the bounds check makes sure that neither the x, y and z axis can be negative.

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

No branches or pull requests

2 participants