Skip to content

Commit

Permalink
minor shuttle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Sep 14, 2023
1 parent 03fe243 commit 3b6ba6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/shuttle/docking.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
var/turf/oldT = old_turfs[i]
if(old_turfs[oldT] & MOVE_TURF)
new_hidden_turfs += new_turfs[i]
if(oldT.outdoor_effect)
oldT.outdoor_effect.process_state()

SSshuttle.update_hidden_docking_ports(null, new_hidden_turfs)
/***************************************************************************************************************/

Expand Down
3 changes: 3 additions & 0 deletions code/modules/shuttle/on_move.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ All ShuttleMove procs go here
if(rotation)
shuttleRotate(rotation) //see shuttle_rotate.dm

if(oldT.outdoor_effect)
oldT.outdoor_effect.process_state()

return TRUE

/turf/proc/lateShuttleMove(turf/oldT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Sunlight System
affecting_corners = null

/atom/movable/outdoor_effect/proc/process_state()
if(source_turf != loc)
Move(source_turf)
switch(state)
if(SKY_BLOCKED)
disable_sunlight() /* Do our indoor processing */
Expand Down

0 comments on commit 3b6ba6b

Please sign in to comment.