Fixed missing chunks errors
This commit is contained in:
parent
327f0d8f65
commit
4361021611
14
game.py
14
game.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue