diff options
author | Peter Kohaut | 2016-09-10 18:33:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-29 22:33:41 +0200 |
commit | bf44e97d79019c926b214f9f6b109a192d46e2ec (patch) | |
tree | 1e48b1b846253f25233d83f4992743210860d6aa /engines/bladerunner/mouse.cpp | |
parent | b67bca20b5db7f3d6473341efd7fabfa6532f465 (diff) | |
download | scummvm-rg350-bf44e97d79019c926b214f9f6b109a192d46e2ec.tar.gz scummvm-rg350-bf44e97d79019c926b214f9f6b109a192d46e2ec.tar.bz2 scummvm-rg350-bf44e97d79019c926b214f9f6b109a192d46e2ec.zip |
BLADERUNNER: added all scene scripts, esper script, kia script, vk script, completed init script. Added decoding of lights from VQA. Moved view from scene.
Diffstat (limited to 'engines/bladerunner/mouse.cpp')
-rw-r--r-- | engines/bladerunner/mouse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp index ba747c2e94..14a2151e43 100644 --- a/engines/bladerunner/mouse.cpp +++ b/engines/bladerunner/mouse.cpp @@ -308,7 +308,7 @@ Vector3 Mouse::getXYZ(int x, int y) int screenRight = 640 - x; int screenDown = 480 - y; - float zcoef = 1.0f / tan(_vm->_scene->_view._fovX / 2.0f); + float zcoef = 1.0f / tan(_vm->_view->_fovX / 2.0f); float x3d = (2.0f / 640.0f * screenRight - 1.0f); float y3d = (2.0f / 480.0f * screenDown - 1.0f) * 0.75f; @@ -320,7 +320,7 @@ Vector3 Mouse::getXYZ(int x, int y) pos.x = pos.z / zcoef * x3d; pos.y = pos.z / zcoef * y3d; - Matrix4x3 matrix = _vm->_scene->_view._frameViewMatrix; + Matrix4x3 matrix = _vm->_view->_frameViewMatrix; matrix.unknown(); |