Skip to content
Snippets Groups Projects
Commit adbc1627 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3107 51575b47-30f0-44d4-a5cc-537603b46e54
parent d2c0e915
No related branches found
No related tags found
No related merge requests found
......@@ -977,7 +977,16 @@ function _M:displayParticles(nb_keyframes)
local del = {}
local e = next(self.particles)
while e do
if e._mo and e.x and e.y then adx, ady = e._mo:getMoveAnim(self._map, e.x, e.y) else adx, ady = 0, 0 end -- Make sure we display on the real screen coords: handle current move anim position
adx, ady = 0, 0
if e.x and e.y then
-- Make sure we display on the real screen coords: handle current move anim position
if e._mo then
adx, ady = e._mo:getMoveAnim(self._map, e.x, e.y)
else
adx, ady = self._map:getScroll()
adx, ady = adx / self.tile_w, ady / self.tile_h
end
end
if nb_keyframes == 0 and e.x and e.y then
-- Just display it, not updating, no emitting
......
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