Skip to content

Commit

Permalink
Fix SMES Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilly-Lira committed Oct 6, 2024
1 parent 0cfb9ee commit 9317ed1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/modules/power/smes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,18 @@ GLOBAL_LIST_EMPTY(smeses)
target = 0
. = TRUE
else if(target == "max")
target = output_level_max
switch(io) //RS Add Start
if(SMES_TGUI_INPUT)
target = input_level_max
if(SMES_TGUI_OUTPUT) //RS Add End
target = output_level_max
. = TRUE
else if(adjust)
target = output_level + adjust
switch(io) //RS Add Start
if(SMES_TGUI_INPUT)
target = input_level + adjust
if(SMES_TGUI_OUTPUT) //RS Add End
target = output_level + adjust
. = TRUE
else if(text2num(target) != null)
target = text2num(target)
Expand Down

0 comments on commit 9317ed1

Please sign in to comment.