Don't call allocateArrays from readMAXS, rather call it explicitly after calling readMAXS; init _palManipCounter in the proper place (only needed when restarting); free palManip data on exit

svn-id: r17495
This commit is contained in:
Max Horn 2005-04-10 00:51:47 +00:00
parent 78f2f279c4
commit cfe85b8618
7 changed files with 25 additions and 43 deletions

View file

@ -1169,6 +1169,9 @@ ScummEngine::~ScummEngine() {
delete _costumeRenderer;
free(_shadowPalette);
free(_palManipPalette);
free(_palManipIntermediatePal);
res.freeResources();
if (_heversion >= 70) {
@ -1403,6 +1406,8 @@ void ScummEngine::scummInit() {
initScreens(16, 144);
}
_palManipCounter = 0;
for (i = 0; i < 256; i++)
_roomPalette[i] = i;
if (_version == 1) {