diff options
author | Eugene Sandulenko | 2016-05-02 17:27:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-02 17:27:49 +0200 |
commit | 375cac6d79a50a68b7513ba77e216eea1363ad01 (patch) | |
tree | 804a3ccf5bd3a072dbfdc4c5fbb452c0069dfc5f /engines | |
parent | 298ea1a76ede84acff0c41fd52af063d6a51e6a8 (diff) | |
download | scummvm-rg350-375cac6d79a50a68b7513ba77e216eea1363ad01.tar.gz scummvm-rg350-375cac6d79a50a68b7513ba77e216eea1363ad01.tar.bz2 scummvm-rg350-375cac6d79a50a68b7513ba77e216eea1363ad01.zip |
MADE: Init class variables
Diffstat (limited to 'engines')
-rw-r--r-- | engines/made/made.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/made/made.cpp b/engines/made/made.cpp index f1539297ee..a29aa2512f 100644 --- a/engines/made/made.cpp +++ b/engines/made/made.cpp @@ -58,11 +58,24 @@ MadeEngine::MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc) : Eng const GameSettings *g; + _eventNum = 0; + _eventMouseX = _eventMouseY = 0; + _eventKey = 0; + _autoStopSound = false; + _soundEnergyIndex = 0; + _soundEnergyArray = 0; + _musicBeatStart = 0; + _cdTimeStart = 0; + + _gameId = -1; + const char *gameid = ConfMan.get("gameid").c_str(); for (g = madeSettings; g->gameid; ++g) if (!scumm_stricmp(g->gameid, gameid)) _gameId = g->id; + assert(_gameId != -1); + _rnd = new Common::RandomSource("made"); _console = new MadeConsole(this); @@ -85,6 +98,8 @@ MadeEngine::MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc) : Eng _music = nullptr; + _soundRate = 0; + // Set default sound frequency switch (getGameID()) { case GID_RODNEY: |