aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 8c15ccc..a3923fa 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -128,11 +128,12 @@ double World::getHeight(double x, double y, double z)
int h = 0.0;
for (auto b : l.hitbox[wx]) {
- if (b)
+ if (b == true)
Y = h;
h++;
}
- return Y;
+ std::cout << l.drawLayer << "," << wx << "," << Y << std::endl;
+ return (Y/unitSize);
}
}
return 0;