UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

Weird decompilation issue with "gml_Object_blt_hoopbullet2_Collision_760"

Open Grossley opened this issue 4 years ago • 1 comments

action_set_hspeed((-hspeed)) appears to have redundant parentheses. Check to see whether this is real or an error.

Grossley avatar Sep 04 '21 00:09 Grossley

This is because Decompiler.ExpressionOne.cs#L40 always produces parentheses. An appropriate fix might be adding a ToStringNoParens method and invoking that in Decompiler.DirectFunctionCall.cs, similar to the change to that file in #1675.

Jacky720 avatar Feb 19 '24 18:02 Jacky720