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/teenagent.h | |
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/teenagent.h')
-rw-r--r-- | engines/teenagent/teenagent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/teenagent.h b/engines/teenagent/teenagent.h index a376b379ba..bc802da8bc 100644 --- a/engines/teenagent/teenagent.h +++ b/engines/teenagent/teenagent.h @@ -47,7 +47,7 @@ class Scene; class MusicPlayer; class Console; -class TeenAgentEngine: public Engine { +class TeenAgentEngine : public Engine { public: enum Action { kActionNone, kActionExamine, kActionUse }; @@ -117,7 +117,7 @@ public: void fadeOut(); void wait(uint16 frames); - Common::RandomSource random; + Common::RandomSource _rnd; Scene *scene; Inventory *inventory; |