Fixed landing when passing trough a semi solid

This commit is contained in:
theo@manjaro 2021-11-20 22:09:48 +01:00
parent 1fc2e15a8f
commit 4625b36b92

View File

@ -146,7 +146,7 @@ class Player(Movable):
self.leaptimer = self.leapmaxtimer
self.candash = True
self.canfastfall = True
if self.verspd!=0:
if self.verspd!=0 and abs(self.verspd)/self.verspd==abs(self.gravityway)/self.gravityway:
self.sprite=self.spritelanding
self.landingtimer = self.maxlandtime
if self.fastfall: