modules/world: attach and detach the camera when drawing the map

This commit is contained in:
Kazhnuz 2019-04-29 14:12:34 +02:00
parent 1ba74a534d
commit cc5de7d5ff

View file

@ -230,7 +230,9 @@ function BaseWorld:drawMap(id)
end
if self.haveMap then
self.cameras:attachView(id)
self.map:draw(-tx, -ty, scale, scale)
self.cameras:detachView(id)
end
end