fix inverted zoom

This commit is contained in:
2023-06-05 13:12:43 +02:00
parent 19c03010cb
commit b72f4a7673

View File

@@ -86,7 +86,7 @@ void Renderer::Resize(int width, int height) {
} }
void Renderer::SetZoom(float zoom) { void Renderer::SetZoom(float zoom) {
m_Camera.CamPos.y = std::max(1.0f, m_Camera.CamPos.y + zoom); m_Camera.CamPos.y = std::max(1.0f, m_Camera.CamPos.y - zoom);
} }
void Renderer::SetCamMovement(const Vec2f& mov) { void Renderer::SetCamMovement(const Vec2f& mov) {