MADE: Init class variables

This commit is contained in:
Eugene Sandulenko 2016-05-02 17:27:49 +02:00
parent 298ea1a76e
commit 375cac6d79

View File

@ -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: