mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] SMES Fix (#9217)
Co-authored-by: Lilly-Lira <lira.kitsune13@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -431,10 +431,18 @@ GLOBAL_LIST_EMPTY(smeses)
|
||||
target = 0
|
||||
. = TRUE
|
||||
else if(target == "max")
|
||||
target = output_level_max
|
||||
switch(io)
|
||||
if(SMES_TGUI_INPUT)
|
||||
target = input_level_max
|
||||
if(SMES_TGUI_OUTPUT)
|
||||
target = output_level_max
|
||||
. = TRUE
|
||||
else if(adjust)
|
||||
target = output_level + adjust
|
||||
switch(io)
|
||||
if(SMES_TGUI_INPUT)
|
||||
target = input_level + adjust
|
||||
if(SMES_TGUI_OUTPUT)
|
||||
target = output_level + adjust
|
||||
. = TRUE
|
||||
else if(text2num(target) != null)
|
||||
target = text2num(target)
|
||||
|
||||
Reference in New Issue
Block a user