diff options
Diffstat (limited to 'engines/bladerunner/mouse.cpp')
-rw-r--r-- | engines/bladerunner/mouse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp index 675e20c0fd..be114dc1bb 100644 --- a/engines/bladerunner/mouse.cpp +++ b/engines/bladerunner/mouse.cpp @@ -26,6 +26,7 @@ #include "bladerunner/scene.h" #include "bladerunner/scene_objects.h" #include "bladerunner/shape.h" +#include "bladerunner/zbuffer.h" #include "graphics/surface.h" @@ -308,7 +309,7 @@ Vector3 Mouse::getXYZ(int x, int y) { float x3d = (2.0f / 640.0f * screenRight - 1.0f); float y3d = (2.0f / 480.0f * screenDown - 1.0f) * 0.75f; - uint16 zbufval = _vm->_zBuffer1[x + y * 640]; + uint16 zbufval = _vm->_zbuffer->getZValue(x, y); Vector3 pos; pos.z = zbufval / 25.5f; |