MADS: Some more initializations
This commit is contained in:
parent
88bc539b3e
commit
d4b1183753
2 changed files with 13 additions and 1 deletions
|
@ -45,9 +45,17 @@ SequenceEntry::SequenceEntry() {
|
||||||
_numTicks = 0;
|
_numTicks = 0;
|
||||||
_extraTicks = 0;
|
_extraTicks = 0;
|
||||||
_timeout = 0;
|
_timeout = 0;
|
||||||
|
_active = false;
|
||||||
|
_nonFixed = false;
|
||||||
|
_flags = 0;
|
||||||
|
for (int i = 0; i < 5; ++i)
|
||||||
|
_entries._mode[i] = SEQUENCE_TRIGGER_EXPIRE;
|
||||||
|
|
||||||
_entries._count = 0;
|
_entries._count = 0;
|
||||||
Common::fill(&_entries._mode[0], &_entries._mode[SEQUENCE_ENTRY_SUBSET_MAX], SEQUENCE_TRIGGER_EXPIRE);
|
_actionNouns._verbId = VERB_NONE;
|
||||||
|
_actionNouns._objectNameId = -1;
|
||||||
|
_actionNouns._indirectObjectId = -1;
|
||||||
|
|
||||||
Common::fill(&_entries._frameIndex[0], &_entries._frameIndex[SEQUENCE_ENTRY_SUBSET_MAX], 0);
|
Common::fill(&_entries._frameIndex[0], &_entries._frameIndex[SEQUENCE_ENTRY_SUBSET_MAX], 0);
|
||||||
Common::fill(&_entries._trigger[0], &_entries._trigger[SEQUENCE_ENTRY_SUBSET_MAX], 0);
|
Common::fill(&_entries._trigger[0], &_entries._trigger[SEQUENCE_ENTRY_SUBSET_MAX], 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -331,6 +331,10 @@ UserInterface::UserInterface(MADSEngine *vm) : _vm(vm), _dirtyAreas(vm),
|
||||||
_highlightedItemVocabIndex = -1;
|
_highlightedItemVocabIndex = -1;
|
||||||
_dirtyAreas.resize(50);
|
_dirtyAreas.resize(50);
|
||||||
_inventoryChanged = false;
|
_inventoryChanged = false;
|
||||||
|
_noSegmentsActive = 0;
|
||||||
|
_someSegmentsActive = 0;
|
||||||
|
_rectP = nullptr;
|
||||||
|
|
||||||
Common::fill(&_categoryIndexes[0], &_categoryIndexes[7], 0);
|
Common::fill(&_categoryIndexes[0], &_categoryIndexes[7], 0);
|
||||||
|
|
||||||
// Map the user interface to the bottom of the game's screen surface
|
// Map the user interface to the bottom of the game's screen surface
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue