RhenaudTheLukark / CreateYourFrisk

Rhenaud The Lukark's Unitale fork
GNU General Public License v3.0
133 stars 56 forks source link

[Issue] Not matched [ in TextObject freezes up CYF #35

Closed TomaszewskiPatryk closed 5 years ago

TomaszewskiPatryk commented 5 years ago

Describe the bug If text used in TextObject contains more [ than ] (so, there are some [ that are not matched), CYF will freeze up and go unresponsive when trying to display it. This doesn't happen for encounter or enemy text.

Code To Reproduce

CreateText({"[abc"}, {320, 240}, 150)

Expected behavior Not only shouldn't it freeze up, but it shouldn't throw any error at all. It should simply display the [ and the following text, just like it does in encounter/enemy text.

Setup:

SoshJam commented 5 years ago

Try escaping it, e.g. CreateText({“\[abc”}, etc.

RhenaudTheLukark commented 5 years ago

Fixed in 0.6.2.2