Makes jump actually jump (#4735)

* Makes jump actually jump

fixes #4707
sets flying to 1 for the duration of the jump. Means you can jump over
anything you can fly over.

Also fixes a bug with flying that could leave you visually floating
(pixel_y = 5) when you stop flying

* better fix
This commit is contained in:
VampyrBytes
2016-06-21 16:56:11 -04:00
committed by Fox McCloud
parent 2a9041fdd8
commit 8af56d111c
2 changed files with 5 additions and 6 deletions
+2 -6
View File
@@ -900,13 +900,9 @@
else if(ear_damage < 25) //ear damage heals slowly under this threshold. otherwise you'll need earmuffs
ear_damage = max(ear_damage - 0.05, 0)
if(flying)
spawn()
animate(src, pixel_y = pixel_y + 5 , time = 10, loop = 1, easing = SINE_EASING)
spawn(10)
if(flying)
animate(src, pixel_y = pixel_y - 5, time = 10, loop = 1, easing = SINE_EASING)
animate(src, pixel_y = pixel_y + 5 , time = 10, loop = 1, easing = SINE_EASING)
animate(pixel_y = pixel_y - 5, time = 10, loop = 1, easing = SINE_EASING)
// If you're dirty, your gloves will become dirty, too.
if(gloves && germ_level > gloves.germ_level && prob(10))