fix light ghost

This commit is contained in:
Waylon Walker 2023-06-30 19:53:47 -05:00
parent d07d15897b
commit 51d637754f
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -54,6 +54,8 @@ class Light:
)
for other in self.game.player.others.__root__:
if other.id == self.game.player.hero.id:
continue
v = pygame.math.Vector2(0, 1)
v = v.rotate(-other.flashlight_angle)
v.scale_to_length(other.flashlight_strength)