Fixed missing chunks errors

This commit is contained in:
Kyler Olsen 2024-11-10 20:51:56 -07:00
parent 327f0d8f65
commit 4361021611
1 changed files with 7 additions and 7 deletions

14
game.py
View File

@ -150,13 +150,13 @@ def ray(
not world_map[int(map_pos.x),int(map_pos.y)]
): break
if (
map_pos.x < 0 or
map_pos.y < 0 or
map_pos.x > world_map.width or
map_pos.y > world_map.height or
side_dis.length_squared() > max_dis_squared
): return 0, None
# if (
# map_pos.x < 0 or
# map_pos.y < 0 or
# map_pos.x > world_map.width or
# map_pos.y > world_map.height or
# side_dis.length_squared() > max_dis_squared
# ): return 0, None
# if debug: print(map_pos, side_dis)