[MIRROR] fix two runtimes in virus code (#9793)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-04 17:38:24 -07:00
committed by GitHub
parent 57f2302d2b
commit 343b05a12e
2 changed files with 18 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
break
var/direction = get_dir(current, target)
var/turf/next = get_step(current, direction)
if(!current.CanZASPass() || !next.CanZASPass(get_turf(turn(direction, 100))))
if(!current.CanZASPass(next))
break
current = next