fix: initialize z value for the ennemy

This commit is contained in:
Kazhnuz 2021-07-18 14:03:58 +02:00
parent 90976b7217
commit 0f327d1de2

View file

@ -11,6 +11,7 @@ function Ennemy:new(world, x, y, owner)
self:initSprite()
if (self.owner:haveProtecType("aerial")) then
self.z = 10
self.start.z = 10
end
self.sprHeight = self.owner.abstract.data.hudHeight + 14
end