aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorGregory Montoir2004-09-14 21:59:46 +0000
committerGregory Montoir2004-09-14 21:59:46 +0000
commite494f53822d850a64a6ed96805dd95912c8576a5 (patch)
tree83cc9af167ef763ce8dd2861cd8fa273fd646926 /scumm
parent17ea1f87df044ea9a0656726584f582b028e562c (diff)
downloadscummvm-rg350-e494f53822d850a64a6ed96805dd95912c8576a5.tar.gz
scummvm-rg350-e494f53822d850a64a6ed96805dd95912c8576a5.tar.bz2
scummvm-rg350-e494f53822d850a64a6ed96805dd95912c8576a5.zip
only clear the polygon slots when playing a HE game
svn-id: r15120
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scumm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 8eb9b13839..2417cd5911 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -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;