fix(core/world): fast fix for a glitch with one-player camera

We will have to fix that properly in gamecore later
This commit is contained in:
Kazhnuz 2019-06-17 16:25:03 +02:00
parent d7210db5e5
commit b3882b388f
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,8 @@ function CameraSystem:drawHUD(id)
local string2 = id .. " (" .. viewx .. ":" .. (viewh-viewy) .. ") "
love.graphics.setScissor(viewx, viewh-viewy, vieww, viewh)
love.graphics.translate(viewx, viewh-viewy)
love.graphics.setScissor(viewx, viewy, vieww, viewh)
love.graphics.translate(viewx, viewy)
view.target:drawHUD(id, vieww, viewh)
love.graphics.translate(-viewx, -(viewh-viewy))