diff options
author | Peter Kohaut | 2016-09-29 01:27:45 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-29 22:33:42 +0200 |
commit | f5d5f3302f59d2073c15985f8ffb3058bad7d014 (patch) | |
tree | 320b513f60dcc2cb316b5ca26c5fc04d7377e474 /engines | |
parent | c7f7341f69b4f1b44c82b3693d7f51d9b570df46 (diff) | |
download | scummvm-rg350-f5d5f3302f59d2073c15985f8ffb3058bad7d014.tar.gz scummvm-rg350-f5d5f3302f59d2073c15985f8ffb3058bad7d014.tar.bz2 scummvm-rg350-f5d5f3302f59d2073c15985f8ffb3058bad7d014.zip |
BLADERUNNER: fixed current frame selection for lights
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/slice_renderer.cpp | 4 | ||||
-rw-r--r-- | engines/bladerunner/view.cpp | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/engines/bladerunner/slice_renderer.cpp b/engines/bladerunner/slice_renderer.cpp index 301f329794..cf42f80294 100644 --- a/engines/bladerunner/slice_renderer.cpp +++ b/engines/bladerunner/slice_renderer.cpp @@ -364,8 +364,8 @@ void SliceRenderer::drawFrame(int animationId, int animationFrame, Vector3 posit SliceRendererLights sliceRendererLights = SliceRendererLights(_lights); - _lights->setupFrame(_frame); - _setEffects->setupFrame(_frame); + _lights->setupFrame(_view._frame); + _setEffects->setupFrame(_view._frame); float sliceLine = sliceLineIterator.line(); diff --git a/engines/bladerunner/view.cpp b/engines/bladerunner/view.cpp index 9356f046dd..b01273f34d 100644 --- a/engines/bladerunner/view.cpp +++ b/engines/bladerunner/view.cpp @@ -28,8 +28,7 @@ namespace BladeRunner { bool View::read(Common::ReadStream *stream) { - uint32 frame; - frame = stream->readUint32LE(); + _frame = stream->readUint32LE(); float d[12]; for (int i = 0; i != 12; ++i) |