Skip to content

Commit

Permalink
Merge pull request TS-Rogue-Star#615 from Lilly-Lira/SMES_Fix
Browse files Browse the repository at this point in the history
Fix SMES Buttons
  • Loading branch information
Very-Soft authored Oct 6, 2024
2 parents 8752c13 + 9317ed1 commit 7e064a0
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 7e064a0

Please sign in to comment.