mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-19 16:18:45 +00:00
AVALANCHE: Fix CID 1109678, 1109674
This commit is contained in:
parent
a3c937c556
commit
43fb42e917
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user