Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Sep 28, 2023
1 parent 97be59d commit a7059bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/game/smoothwall.dm
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,23 @@
setDir(NORTH)

/obj/structure/window/framed/handle_icon_junction(jun_1, jun_2)
if(!icon_exists(icon, "[basestate][jun_2 ? jun_2 : jun_1]")) //Missing states for 5, 6, 7, 9, 19, 11, 13, 14, 15 for the vast majority of /obj/structure/window/framed
icon_state = "[basestate]0"
junction = 0
return

icon_state = "[basestate][jun_2 ? jun_2 : jun_1]" //Use junction 2 if possible, junction 1 otherwise.
if(jun_2)
junction = jun_2
else
junction = jun_1

/obj/structure/window_frame/handle_icon_junction(jun_1, jun_2)
if(!icon_exists(icon, "[basestate][jun_2 ? jun_2 : jun_1]_frame")) //Missing states for 5, 6, 7, 9, 19, 11, 13, 14, 15 for the vast majority of /obj/structure/window_frame
icon_state = "[basestate]0_frame"
junction = 0
return

icon_state = "[basestate][jun_2 ? jun_2 : jun_1]_frame" //Use junction 2 if possible, junction 1 otherwise.
if(jun_2)
junction = jun_2
Expand Down

0 comments on commit a7059bf

Please sign in to comment.