fix inverted zoom
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user