Skip to content

Commit

Permalink
fix an oversight leading to visual issues
Browse files Browse the repository at this point in the history
  • Loading branch information
GenericDM committed Oct 22, 2023
1 parent 385ceac commit d7cb4b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/crateshelf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
"<span class='notice>You hear a thud.</span>")
crate.forceMove(drop_location()) // Drop the crate onto the shelf,
step_rand(crate, 1) // Then try to push it somewhere.
crate.layer = initial(crate.layer) // Reset the crate back to having the default layer, otherwise we might get strange interactions.
crate.pixel_y = initial(crate.pixel_y) // Reset the crate back to having no offset, otherwise it will be floating.
shelf_contents[shelf_contents.Find(crate)] = null // Remove the reference to the crate from the list.
handle_visuals()

Expand Down

0 comments on commit d7cb4b7

Please sign in to comment.