Fixes drinks allowing you to go into negative speed values. (#15604)

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-01-20 10:11:44 +01:00
committed by GitHub
co-authored by Matt Atlas
parent fb6f6e8e66
commit 27d8f07861
3 changed files with 43 additions and 3 deletions
@@ -50,14 +50,14 @@
if(HAS_FLAG(mutations, mRun))
tally = 0
tally += move_delay_mod
tally += max(0, tally + move_delay_mod)
var/obj/item/I = get_active_hand()
if(istype(I))
tally += I.slowdown
if(tally > 0 && (CE_SPEEDBOOST in chem_effects))
tally = max(0, tally-3)
tally = max(0, tally - 3)
var/turf/T = get_turf(src)
if(T) // changelings don't get movement costs