Skip to content

Commit

Permalink
performance save
Browse files Browse the repository at this point in the history
  • Loading branch information
SapphicOverload committed Feb 11, 2024
1 parent 61c0e56 commit 0a4980e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions code/game/machinery/shuttle/turbine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,7 @@
thrust = lastgen * POWER_TO_THRUST // second law

var/turf/outturf = get_step(src, dir)
var/output_blocked = TRUE
if(!isclosedturf(outturf))
output_blocked = FALSE
for(var/atom/A in outturf)
if(!CANATMOSPASS(A, outturf))
output_blocked = TRUE
break

if(output_blocked)
if(!LAZYLEN(outturf.atmos_adjacent_turfs))
compressor.rpmtarget = 0
return

Expand Down

0 comments on commit 0a4980e

Please sign in to comment.