SUPERNOVA: Initializes RandomSource on stack
This commit is contained in:
parent
b937268e61
commit
dd6df76b32
2 changed files with 2 additions and 4 deletions
|
@ -103,6 +103,7 @@ SupernovaEngine::SupernovaEngine(OSystem *syst)
|
||||||
, _currentImage(NULL)
|
, _currentImage(NULL)
|
||||||
, _soundMusicIntro(NULL)
|
, _soundMusicIntro(NULL)
|
||||||
, _soundMusicOutro(NULL)
|
, _soundMusicOutro(NULL)
|
||||||
|
, _rnd("supernova")
|
||||||
, _brightness(255)
|
, _brightness(255)
|
||||||
, _menuBrightness(255)
|
, _menuBrightness(255)
|
||||||
, _delay(33)
|
, _delay(33)
|
||||||
|
@ -121,15 +122,12 @@ SupernovaEngine::SupernovaEngine(OSystem *syst)
|
||||||
|
|
||||||
// setup engine specific debug channels
|
// setup engine specific debug channels
|
||||||
DebugMan.addDebugChannel(kDebugGeneral, "general", "Supernova general debug channel");
|
DebugMan.addDebugChannel(kDebugGeneral, "general", "Supernova general debug channel");
|
||||||
|
|
||||||
_rnd = new Common::RandomSource("supernova");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SupernovaEngine::~SupernovaEngine() {
|
SupernovaEngine::~SupernovaEngine() {
|
||||||
DebugMan.clearAllDebugChannels();
|
DebugMan.clearAllDebugChannels();
|
||||||
|
|
||||||
delete _currentImage;
|
delete _currentImage;
|
||||||
delete _rnd;
|
|
||||||
delete _console;
|
delete _console;
|
||||||
delete _gm;
|
delete _gm;
|
||||||
delete _soundMusicIntro;
|
delete _soundMusicIntro;
|
||||||
|
|
|
@ -97,7 +97,7 @@ public:
|
||||||
|
|
||||||
virtual Common::Error run();
|
virtual Common::Error run();
|
||||||
|
|
||||||
Common::RandomSource *_rnd;
|
Common::RandomSource _rnd;
|
||||||
GameManager *_gm;
|
GameManager *_gm;
|
||||||
Console *_console;
|
Console *_console;
|
||||||
Audio::SoundHandle _soundHandle;
|
Audio::SoundHandle _soundHandle;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue