aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-07-23 10:47:10 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-07-23 10:47:10 -0400
commit9e540db7d6492168cadcafddbf145ffdd7b21981 (patch)
tree8019a7a67e66a5ec87ad7872278e8ee92431251a /src/render.cpp
parent215e5ee6ce089c3e0d5be28fd816bc7031b6acab (diff)
source cleanup; beginning of custom attacks
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp4
1 files changed, 2 insertions, 2 deletions
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