AVALANCHE: Fix CID 1109678, 1109674

This commit is contained in:
Strangerke 2013-10-30 22:43:29 +01:00
parent a3c937c556
commit 43fb42e917
2 changed files with 15 additions and 5 deletions

View File

@ -49,6 +49,7 @@ const int32 Animation::kCatacombMap[8][8] = {
AnimationType::AnimationType(Animation *anim) {
_anim = anim;
_xLength = 0;
_yLength = 0;
for (int i = 0; i < 24; i++) {
_mani[i] = nullptr;
@ -77,6 +78,7 @@ AnimationType::AnimationType(Animation *anim) {
_eachStepProc = Animation::kProcNone;
_fgBubbleCol = kColorWhite;
_bgBubbleCol = kColorBlack;
_id = 177;
}
/**

View File

@ -75,7 +75,8 @@ AvalancheEngine::~AvalancheEngine() {
}
void AvalancheEngine::initVariables() {
// Needed because of Lucerna::load_also()
resetVariables();
for (int i = 0; i < 31; i++) {
_also[i][0] = nullptr;
_also[i][1] = nullptr;
@ -117,11 +118,18 @@ void AvalancheEngine::initVariables() {
_doingSpriteRun = false;
_isLoaded = false;
_soundFx = true;
_spludwickAtHome = false;
_passedCwytalotInHerts = false;
_holdTheDawn = false;
_lastRoom = 0;
_lastRoomNotMap = 0;
_lineNum = 0;
for (int i = 0; i < 50; i++)
_lines[i]._color = kColorWhite;
_dropsOk = false;
_cheat = false;
_letMeOut = false;
_thinks = 2;
_thinkThing = true;
_seeScroll = false;
_currentMouse = 177;
}
Common::ErrorCode AvalancheEngine::initialize() {