Skip to content

Commit

Permalink
fixes supply pods
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Jul 22, 2023
1 parent 81a1fdd commit a46deda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/crates_lockers/closets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
return TRUE

/obj/structure/closet/dump_contents()
if(!isturf(loc))
return
var/atom/L = drop_location()
for(var/atom/movable/AM as anything in src)
AM.forceMove(L)
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cargo/supplypod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
var/openingSound //Admin sound to play when the pod opens
var/leavingSound //Admin sound to play when the pod leaves
var/soundVolume = 80 //Volume to play sounds at. Ignores the cap
var/bay //Used specifically for the centcom_podlauncher datum. Holds the current bay the user is launching objects from. Bays are specific rooms on the centcom map.
var/area/bay //Used specifically for the centcom_podlauncher datum. Holds the current bay the user is launching objects from. Bays are specific rooms on the centcom map.
var/list/explosionSize = list(0,0,2,3)
var/stay_after_drop = FALSE
var/specialised = TRUE // It's not a general use pod for cargo/admin use
Expand Down Expand Up @@ -129,7 +129,7 @@
risingPod.pixel_z = 0 //The initial value of risingPod's pixel_z is 200 because it normally comes down from a high spot
animate(risingPod, pixel_z = 200, time = 10, easing = LINEAR_EASING) //Animate our rising pod
if (returntobay)
holder.forceMove(bay) //Move the pod back to centcom, where it belongs
holder.forceMove(pick(bay.contents)) //Move the pod back to centcom, where it belongs
QDEL_IN(risingPod, 10)
reversing = FALSE //Now that we're done reversing, we set this to false (otherwise we would get stuck in an infinite loop of calling the close proc at the bottom of open() )
bluespace = TRUE //Make it so that the pod doesn't stay in centcom forever
Expand Down

0 comments on commit a46deda

Please sign in to comment.