Open Yule42 opened 2 years ago
Ternaries do not compile correctly when combined with +=. Example: global.msg[0] += ((((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%")) turns into global.msg[_temp_local_var_12] = (global.msg[0] + (((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%"))
global.msg[0] += ((((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%"))
global.msg[_temp_local_var_12] = (global.msg[0] + (((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%"))
This is most likely a decompiler issue, not a compiler issue. This will be investigated.
Ternaries do not compile correctly when combined with +=. Example:
global.msg[0] += ((((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%"))
turns intoglobal.msg[_temp_local_var_12] = (global.msg[0] + (((("& But " + global.monstername[myself]) + " wasn't ") + (global.flag[22] == 2 ? "YELLOW" : (global.flag[22] == 0 ? "SPAREABLE" : "PINK"))) + ".../%%"))