aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/hero.cpp
diff options
context:
space:
mode:
authorlukaslw2014-05-26 19:16:31 +0200
committerlukaslw2014-06-22 20:08:14 +0200
commitc9ed2074b5e7964e52b494f135767d7b8bc96c8b (patch)
tree9f62b85db1e733e989d19b378c4f67be2de4330d /engines/prince/hero.cpp
parentaded3f0e4504e5db32d1cf92412da19e5a6950bd (diff)
downloadscummvm-rg350-c9ed2074b5e7964e52b494f135767d7b8bc96c8b.tar.gz
scummvm-rg350-c9ed2074b5e7964e52b494f135767d7b8bc96c8b.tar.bz2
scummvm-rg350-c9ed2074b5e7964e52b494f135767d7b8bc96c8b.zip
PRINCE: ShowBackAnim progress - still with random crashes
Diffstat (limited to 'engines/prince/hero.cpp')
-rw-r--r--engines/prince/hero.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/hero.cpp b/engines/prince/hero.cpp
index 3e8b2ac5b5..a91ef94602 100644
--- a/engines/prince/hero.cpp
+++ b/engines/prince/hero.cpp
@@ -35,7 +35,7 @@ Hero::Hero(PrinceEngine *vm, GraphicsMan *graph) : _vm(vm), _graph(graph)
, _number(0), _visible(false), _state(MOVE), _middleX(0), _middleY(0)
, _boreNum(1), _currHeight(0), _moveDelay(0), _shadMinus(0), _moveSetType(0)
, _lastDirection(DOWN), _destDirection(DOWN), _talkTime(0), _boredomTime(0), _phase(0)
- , _specAnim(0), _drawX(0), _drawY(0), _randomSource("prince"), _zoomFactor(0), _scaleValue(0)
+ , _specAnim(0), _drawX(0), _drawY(0), _zoomFactor(0), _scaleValue(0)
, _shadZoomFactor(0), _shadScaleValue(0), _shadLineLen(0), _shadDrawX(0), _shadDrawY(0)
, _frameXSize(0), _frameYSize(0), _scaledFrameXSize(0), _scaledFrameYSize(0)
{
@@ -695,7 +695,7 @@ void Hero::showHero() {
break;
}
if (_phase == _moveSet[_moveSetType]->getFrameCount() - 1) {
- _boreNum = _randomSource.getRandomNumber(1); // rand one of two 'bored' animation
+ _boreNum = _vm->_randomSource.getRandomNumber(1); // rand one of two 'bored' animation
_lastDirection = DOWN;
_state = STAY;
}