fix: Viewport.getDepth() for y == 0

This commit is contained in:
Hannes Janetzek 2014-11-12 05:37:25 +01:00
parent c3ac8a412c
commit 424126216c

@ -145,9 +145,6 @@ public class Viewport {
* and the map plane
*/
protected float getDepth(float y) {
if (y == 0)
return 0;
// origin is moved by VIEW_DISTANCE
double cx = VIEW_DISTANCE;
// 'height' of the ray