modules/world: attach and detach the camera when drawing the map
This commit is contained in:
parent
1ba74a534d
commit
cc5de7d5ff
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue