Skip to content
Snippets Groups Projects
Commit 3d81edd4 authored by DarkGod's avatar DarkGod
Browse files

meh

parent 471b8cd8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -131,7 +131,7 @@ function _M:display(dispx, dispy, prevfbo, rotate_keyframes)
self.fbo_shader.shad:use(false)
end
if not self.target_type.immediate_keys or firstx then
if (not self.target_type.immediate_keys or firstx) and self.target and self.target.x then
core.display.glMatrix(true)
core.display.glTranslate(self.display_x + (self.target.x - game.level.map.mx) * self.tile_w * Map.zoom + self.tile_w * Map.zoom / 2, self.display_y + (self.target.y - game.level.map.my + util.hexOffset(self.target.x)) * self.tile_h * Map.zoom + self.tile_h * Map.zoom / 2, 0)
if rotate_keyframes then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment