Skip to content

Commit

Permalink
Makes windows have damage overlays - Fixes #675
Browse files Browse the repository at this point in the history
  • Loading branch information
covertcorvid committed Sep 24, 2023
1 parent e486a25 commit be1ccb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/structures/window.dm
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
cut_overlay(crack_overlay)
if(ratio > 75)
return
crack_overlay = mutable_appearance('icons/obj/structures.dmi', "damage[ratio]", -(layer+0.1))
crack_overlay = mutable_appearance('icons/obj/structures.dmi', "damage[ratio]", (layer+0.1)) //NSV13 - made layer in front of windows
add_overlay(crack_overlay)

/obj/structure/window/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
Expand Down
1 change: 1 addition & 0 deletions nsv13/code/game/turfs/legacy_smooth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
else
I = image(icon, "[basestate][connections[i]]", dir = 1<<(i-1))
overlays += I
update_icon()

/obj/structure/window/proc/can_visually_connect_to(obj/structure/S)
return istype(S, src)
Expand Down

0 comments on commit be1ccb6

Please sign in to comment.