From 9e540db7d6492168cadcafddbf145ffdd7b21981 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 23 Jul 2017 10:47:10 -0400 Subject: source cleanup; beginning of custom attacks --- src/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render.cpp') diff --git a/src/render.cpp b/src/render.cpp index 5da74c8..58674a1 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -143,8 +143,8 @@ void preRender(void) else if (offset.x + SCREEN_WIDTH2 > worldWidth * 0.5f) offset.x = ((worldWidth * 0.5f) - SCREEN_WIDTH2); - // ortho y snapping - offset.y = std::max(ploc.y /*+ player->height / 2*/, SCREEN_HEIGHT2); + // ortho y snapping (TODO center w/ height) + offset.y = std::max(ploc.y, SCREEN_HEIGHT2); // "setup" glm::mat4 projection = glm::ortho(floor(offset.x - SCREEN_WIDTH2), // left -- cgit v1.2.3