_imagesNum should be clear in startScene()

svn-id: r17044
This commit is contained in:
Travis Howell 2005-03-09 05:04:14 +00:00
parent 69a39e3c54
commit ebcf64df56
3 changed files with 8 additions and 2 deletions

View file

@ -2038,9 +2038,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
stopCycle(0);
_sound->processSoundQues();
if (_heversion >= 71) {
if (_heversion >= 71)
((ScummEngine_v70he *)this)->_wiz.polygonClear();
}
if (_heversion >= 72)
((ScummEngine_v72he *)this)->_wiz.imageNumClear();
// For HE80+ games
for (i = 0; i < _numRoomVariables; i++)

View file

@ -35,6 +35,10 @@ Wiz::Wiz() {
memset(&_polygons, 0, sizeof(_polygons));
}
void Wiz::imageNumClear() {
_imagesNum = 0;
}
void Wiz::polygonClear() {
memset(&_polygons, 0, sizeof(_polygons));
}

View file

@ -109,6 +109,7 @@ struct Wiz {
WizPolygon _polygons[NUM_POLYGONS];
Wiz();
void imageNumClear();
void polygonClear();
void polygonLoad(const uint8 *polData);