So I was reading thru a .j file from map, I see a lot of ineffective code blocks like this one:
If (not(foo == true)) then
return false
end if
return true
After google a bit it seems to be a bug with worldedit GUI trigger script generator
IF foo == true THEN action in GUI will always produce the somewhat "inverse" code posted above.
I wonder if there is a way to make GUI trigger editor generate proper script for IF checks, because the overhead can become significant if these checks are in unit-attacked or periodic triggers.
Using pure JASS might be the solution to this,but currently I have no intentions to convert my GUI triggers to pure JASS.
If (not(foo == true)) then
return false
end if
return true
After google a bit it seems to be a bug with worldedit GUI trigger script generator
IF foo == true THEN action in GUI will always produce the somewhat "inverse" code posted above.
I wonder if there is a way to make GUI trigger editor generate proper script for IF checks, because the overhead can become significant if these checks are in unit-attacked or periodic triggers.
Using pure JASS might be the solution to this,but currently I have no intentions to convert my GUI triggers to pure JASS.