UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.12k stars 213 forks source link

Weird decompilation issue with "gml_Object_blt_hoopbullet2_Collision_760" #530

Open Grossley opened 3 years ago

Grossley commented 3 years ago

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

Jacky720 commented 6 months ago

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.