From b3882b388f1b18373089ae5af8d04bdbcc149c9c Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 17 Jun 2019 16:25:03 +0200 Subject: [PATCH] fix(core/world): fast fix for a glitch with one-player camera We will have to fix that properly in gamecore later --- imperium-porcorum.love/core/modules/world/camera.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imperium-porcorum.love/core/modules/world/camera.lua b/imperium-porcorum.love/core/modules/world/camera.lua index db77abe..5104d82 100644 --- a/imperium-porcorum.love/core/modules/world/camera.lua +++ b/imperium-porcorum.love/core/modules/world/camera.lua @@ -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))