Page 1 of 1

[0.11.19] [kovarex] LUA - Ghosts are not aligned to the grid

Posted: Thu Mar 26, 2015 5:10 pm
by kds71
When I create a ghost entity by game.createentity, it is not aligned to the grid properly (it is aligned to grid lines, instead of center of the tile):

Code: Select all

/c game.createentity{ name = "ghost", innername = "fast-transport-belt", position = game.player.position, direction = 0, force = game.player.force }
results in: http://i.imgur.com/s9t6vBW.png

The ghost should be between grid lines. It does not matter whether you create ghost in a mod or in the console.

Re: [0.11.19] [kovarex] LUA - Ghosts are not aligned to the grid

Posted: Mon Mar 30, 2015 5:04 pm
by kovarex
Thx for the report, it is fixed for 0.11.20 now.

Re: [0.11.19] [kovarex] LUA - Ghosts are not aligned to the grid

Posted: Tue Mar 31, 2015 3:10 am
by kds71
Awesome, thank you!