ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 26 forks source link

Ternary Operators don't generate properly #145

Closed Protowalker closed 4 years ago

Protowalker commented 4 years ago
struct Example{
    define isActive = false;
    public define IsActive: isActive?true:false;
}

globalvar Example e;

rule: "check e"
if(e.IsActive){

}

should generate the condition (Value In Array(Global Variable(_objectVariable_0), Global Variable(test)) ? True : False) == True; but instead generates the condition Value In Array(Global Variable(_objectVariable_0), Global Variable(test)) ? True : False == True which is not valid in the workshop.

Protowalker commented 4 years ago

Note the lack of parentheses

ItsDeltin commented 4 years ago

Fixed in v1.5.