[MIRROR] Makes freerunning quirk prevent falling damage from short falls (#972)

* Merge pull request #53822 from Mickyan/freefalling

Makes freerunning quirk prevent falling damage from short falls

* Makes freerunning quirk prevent falling damage from short falls

Co-authored-by: skoglol <33292112+kriskog@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-09-25 13:38:32 +02:00
committed by GitHub
co-authored by skoglol
parent 59ce61e60c
commit dbafac7ee4
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ GLOBAL_LIST_EMPTY(station_turfs)
prev_turf.visible_message("<span class='danger'>[mov_name] falls through [prev_turf]!</span>")
if(flags & FALL_INTERCEPTED)
return
if(zFall(A, ++levels))
if(zFall(A, levels + 1))
return FALSE
A.visible_message("<span class='danger'>[A] crashes into [src]!</span>")
A.onZImpact(src, levels)