MADS: Fix sprites loading for scene 804

This commit is contained in:
Paul Gilbert 2014-03-08 08:33:13 -05:00
parent 7310080967
commit 80bba74640
2 changed files with 10 additions and 6 deletions

View File

@ -75,6 +75,11 @@ void Scene8xx::enter1() {
/*------------------------------------------------------------------------*/
void Scene804::setup() {
Scene8xx::setup1();
Scene8xx::setup2();
}
void Scene804::enter() {
_globals._chairHotspotIndex = 0;
_globals._v1 = _globals._v2 = 0;
_globals._v3 = _globals._v4 = 0;
@ -101,7 +106,8 @@ void Scene804::setup() {
_globals._spriteIndexes[19] = _scene->_sequences.startCycle(
_globals._spriteIndexes[4], 0, 1);
_scene->_sequences.addTimer(60, 100);
} else {
}
else {
_globals._spriteIndexes[20] = _scene->_sequences.startCycle(
_globals._spriteIndexes[5], false, 1);
_globals._spriteIndexes[21] = _scene->_sequences.startReverseCycle(
@ -109,7 +115,8 @@ void Scene804::setup() {
_scene->_sequences.addTimer(160, 70);
_vm->_game->_player._stepEnabled = false;
}
} else {
}
else {
if (_globals[167] == 0) {
_globals._spriteIndexes[22] = _scene->_sequences.startCycle(
_globals._spriteIndexes[7], false, 1);
@ -136,9 +143,6 @@ void Scene804::setup() {
}
}
void Scene804::enter() {
}
void Scene804::step() {
}

View File

@ -347,7 +347,7 @@ int SpriteSets::add(SpriteAsset *asset, int idx) {
if (!idx)
idx = size();
if (idx >= (int)(size() + 1))
if (idx >= (int)size())
resize(idx + 1);
delete (*this)[idx];
(*this)[idx] = asset;