only clear the polygon slots when playing a HE game

svn-id: r15120
This commit is contained in:
Gregory Montoir 2004-09-14 21:59:46 +00:00
parent 17ea1f87df
commit e494f53822

View File

@ -2327,8 +2327,10 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
stopCycle(0);
_sound->processSoundQues();
for (i = 0; i < _WizNumPolygons; i++)
memset(&_WizPolygons[i], 0, sizeof(WizPolygon));
if (_heversion >= 70 && _WizPolygons) {
for (i = 0; i < _WizNumPolygons; i++)
memset(&_WizPolygons[i], 0, sizeof(WizPolygon));
}
for (i = 0; i < _numRoomVariables; i++)
_roomVars[i] = 0;