diff options
author | Eugene Sandulenko | 2018-03-24 10:46:45 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-24 10:47:07 +0100 |
commit | f153da7f850dd8cdf82e0e9e96b02f84e3996e7e (patch) | |
tree | 5eb7c318829197a1f2e55244c7d031c1f3a56e9c /engines/bladerunner/script/police_maze.cpp | |
parent | c3d6dcfae0cf39812fef3959e7f276b27868bcb5 (diff) | |
download | scummvm-rg350-f153da7f850dd8cdf82e0e9e96b02f84e3996e7e.tar.gz scummvm-rg350-f153da7f850dd8cdf82e0e9e96b02f84e3996e7e.tar.bz2 scummvm-rg350-f153da7f850dd8cdf82e0e9e96b02f84e3996e7e.zip |
BLADERUNNER: Finished PoliceMaze implementation
Diffstat (limited to 'engines/bladerunner/script/police_maze.cpp')
-rw-r--r-- | engines/bladerunner/script/police_maze.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/bladerunner/script/police_maze.cpp b/engines/bladerunner/script/police_maze.cpp index 41a33ff691..78c8076d83 100644 --- a/engines/bladerunner/script/police_maze.cpp +++ b/engines/bladerunner/script/police_maze.cpp @@ -182,8 +182,6 @@ bool PoliceMazeTargetTrack::tick() { return false; } -#if 0 - uint32 oldTime = _time; _time = _vm->getTotalPlayTime(); int32 timeDiff = _time - oldTime; @@ -248,7 +246,7 @@ bool PoliceMazeTargetTrack::tick() { } if (advancePoint) { - _vm->_items->setXYZ(_itemId, _points[_pointIndex].x, _points[_pointIndex].y, _points[_pointIndex].z); + _vm->_items->setXYZ(_itemId, _points[_pointIndex]); readdObject(_itemId); return true; @@ -284,7 +282,7 @@ bool PoliceMazeTargetTrack::tick() { _dataIndex++; if (_vm->_items->isTarget(_itemId)) { - Sound_Play(var1, 90, 0, 0, 50, 0); + Sound_Play(var1, 90, 0, 0, 50); Police_Maze_Decrement_Score(1); Actor_Force_Stop_Walking(0); @@ -406,7 +404,7 @@ bool PoliceMazeTargetTrack::tick() { case 16: var1 = _data[_dataIndex++]; var2 = _data[_dataIndex++]; - Sound_Play(var1, var2, 0, 0, 50, 0); + Sound_Play(var1, var2, 0, 0, 50); break; case 17: @@ -464,7 +462,7 @@ bool PoliceMazeTargetTrack::tick() { case 25: _pointIndex = _data[_dataIndex++]; _pmt_var4 = 0; - _vm->_items->setXYZ(_itemId, _points[_pointIndex].x, _points[_pointIndex].y, _points[_pointIndex].z); + _vm->_items->setXYZ(_itemId, _points[_pointIndex]); readdObject(_itemId); break; @@ -476,7 +474,6 @@ bool PoliceMazeTargetTrack::tick() { cont = false; } } -#endif return true; } |