Page 1 of 1

luaGuiElement::Camera wrong surface_index

Posted: Thu Apr 27, 2017 3:27 am
by Nexela
Camera element gui seems to be adding 1 to the passed surfaced_index. Subtracting 1 from the index causes it to show the correct surface.

gui = player.gui.goal.add{
type = "camera",
name = "test_camera",
position = position
surface_index = surface.index
}
The camera will point at surface.index + 1

Re: luaGuiElement::Camera wrong surface_index

Posted: Thu Apr 27, 2017 4:21 am
by Rseding91
Thanks for the report. Fixed for the next version of 0.15.