_imagesNum should be clear in startScene()
svn-id: r17044
This commit is contained in:
parent
69a39e3c54
commit
ebcf64df56
3 changed files with 8 additions and 2 deletions
|
@ -2038,9 +2038,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
|
||||||
stopCycle(0);
|
stopCycle(0);
|
||||||
_sound->processSoundQues();
|
_sound->processSoundQues();
|
||||||
|
|
||||||
if (_heversion >= 71) {
|
if (_heversion >= 71)
|
||||||
((ScummEngine_v70he *)this)->_wiz.polygonClear();
|
((ScummEngine_v70he *)this)->_wiz.polygonClear();
|
||||||
}
|
if (_heversion >= 72)
|
||||||
|
((ScummEngine_v72he *)this)->_wiz.imageNumClear();
|
||||||
|
|
||||||
// For HE80+ games
|
// For HE80+ games
|
||||||
for (i = 0; i < _numRoomVariables; i++)
|
for (i = 0; i < _numRoomVariables; i++)
|
||||||
|
|
|
@ -35,6 +35,10 @@ Wiz::Wiz() {
|
||||||
memset(&_polygons, 0, sizeof(_polygons));
|
memset(&_polygons, 0, sizeof(_polygons));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Wiz::imageNumClear() {
|
||||||
|
_imagesNum = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void Wiz::polygonClear() {
|
void Wiz::polygonClear() {
|
||||||
memset(&_polygons, 0, sizeof(_polygons));
|
memset(&_polygons, 0, sizeof(_polygons));
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,6 +109,7 @@ struct Wiz {
|
||||||
WizPolygon _polygons[NUM_POLYGONS];
|
WizPolygon _polygons[NUM_POLYGONS];
|
||||||
|
|
||||||
Wiz();
|
Wiz();
|
||||||
|
void imageNumClear();
|
||||||
|
|
||||||
void polygonClear();
|
void polygonClear();
|
||||||
void polygonLoad(const uint8 *polData);
|
void polygonLoad(const uint8 *polData);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue