diff options
author | Max Horn | 2011-05-17 11:58:34 +0200 |
---|---|---|
committer | Max Horn | 2011-05-17 12:17:26 +0200 |
commit | 05a7b160b396f0ffec50d597f5c980be235cbe7e (patch) | |
tree | aa795f5728e9da579434db6f7a59a8e5e6962e5f /engines/teenagent/scene.cpp | |
parent | 4cbe4ede66e65ec9289811eca2f5f62285174c8d (diff) | |
download | scummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.tar.gz scummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.tar.bz2 scummvm-rg350-05a7b160b396f0ffec50d597f5c980be235cbe7e.zip |
TEEN: Use only one RandomSource and give that one a name.
This change ensures that only RandomSource is used which also is
registered with the event recorder. Moreover, it gets rid of a static
RandomSource instance inside Actor::renderIdle.
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r-- | engines/teenagent/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 54c3ce928d..ef18b95f5a 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -804,7 +804,7 @@ bool Scene::render(bool tick_game, bool tick_mark, uint32 delta) { if (_idle_timer < 50) actor_animation_position = teenagent.render(surface, position, orientation, 0, actor_talking, zoom); else - actor_animation_position = teenagent_idle.renderIdle(surface, position, orientation, mark_delta, zoom); + actor_animation_position = teenagent_idle.renderIdle(surface, position, orientation, mark_delta, zoom, _engine->_rnd); } } |