Revoked fixes previously thought necessary for box collisions

main
Skyball2000 2023-03-29 18:22:44 +02:00
parent 969c040e88
commit d18992de3f
1 changed files with 0 additions and 10 deletions

View File

@ -63,16 +63,6 @@ class PhysicsElementsHandler:
skip_sprites.append(sprite)
continue
# remove all skip sprites that are closer than 100 pixels to the player
players = [sprite for sprite in sprites if hasattr(sprite, 'id') and sprite.id == 'player']
if len(players) > 0:
player = players[0]
for sprite in skip_sprites:
if sprite.position_scale.position[1] - player.position_scale.position[1] < 200:
skip_sprites.remove(sprite)
sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites]
closest_sprites: dict[UiElement, list[tuple[int, StaticSprite]]] = {}
buffered_bounding_boxes: dict[UiElement, BoundingBox] = {}