Skip to content

Commit

Permalink
Window sill & grill (#4038)
Browse files Browse the repository at this point in the history
* Update TGS DMAPI

* Revert "Automatic TGS DMAPI Update"

* fixed

---------

Co-authored-by: tgstation-server <[email protected]>
  • Loading branch information
ThePooba and tgstation-server authored Oct 31, 2024
1 parent b308937 commit d229dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monkestation/code/modules/aesthetics/objects/window_sill.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

/obj/structure/window_sill/attackby(obj/item/attacking_item, mob/user, params)
. = ..()
if(!. || !isstack(attacking_item))
return
if(!isstack(attacking_item))
return FALSE
var/obj/item/stack/stack_item = attacking_item
if(istype(attacking_item, /obj/item/stack/sheet/glass))
if(stack_item.amount < 2)
Expand Down
4 changes: 4 additions & 0 deletions monkestation/code/modules/aesthetics/objects/windows.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_GRILLE

/obj/structure/grille/window_sill/atom_break()
. = ..()
Destroy()

/obj/structure/grille/update_overlays(updates=ALL)
. = ..()
if((updates & UPDATE_SMOOTHING) && (smoothing_flags & (SMOOTH_CORNERS|SMOOTH_BITMASK)))
Expand Down

0 comments on commit d229dc8

Please sign in to comment.