Page 1 of 1

[1.1.59] highlight-box with curved-rail target has incorrect bounding box

Posted: Sun Jun 05, 2022 6:36 am
by _CodeGreen
When creating a highlight box, setting it's target to a curved rail will give it an incorrectly sized bounding box.

Reproduce: Hover over a curved rail and use the command below.
/c game.surfaces[1].create_entity{name = "highlight-box", position = {x=0,y=0}, target = game.player.selected}
incorrect-highlight-box.png
incorrect-highlight-box.png (403.46 KiB) Viewed 3856 times

Re: [1.1.59] highlight-box with curved-rail target has incorrect bounding box

Posted: Mon Jun 06, 2022 11:21 am
by boskid
This is a wont fix.

Re: [1.1.59] highlight-box with curved-rail target has incorrect bounding box

Posted: Tue Jun 07, 2022 11:13 pm
by _CodeGreen
I'm curious as to the reason why, is it non-trivial or just not worth the time? I understand either way.

Re: [1.1.59] highlight-box with curved-rail target has incorrect bounding box

Posted: Tue Jun 07, 2022 11:48 pm
by boskid
Fine, i reevaluated how hard it is to fix this issue so it is now fixed for 1.1.61.
102601.png
102601.png (59.74 KiB) Viewed 3706 times