From 95993df8005dda7def72be087e37ea637636366b Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 11 Apr 2006 00:42:19 +0000 Subject: [PATCH] Ooops, re-enable code in allocBlock() svn-id: r21776 --- engines/simon/simon.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index 12c17b90ce2..02b3bebcf70 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -2150,20 +2150,20 @@ byte *SimonEngine::allocBlock(uint32 size) { blockEnd = block + size; - //if (blockEnd >= _vgaBufEnd) { - // _vgaBufFreeStart = _vgaBufStart; - //} else { - // _rejectBlock = false; - // checkNoOverWrite(blockEnd); - // if (_rejectBlock) - // continue; - // checkRunningAnims(blockEnd); - // if (_rejectBlock) - // continue; - // checkZonePtrs(blockEnd); + if (blockEnd >= _vgaBufEnd) { + _vgaBufFreeStart = _vgaBufStart; + } else { + _rejectBlock = false; + checkNoOverWrite(blockEnd); + if (_rejectBlock) + continue; + checkRunningAnims(blockEnd); + if (_rejectBlock) + continue; + checkZonePtrs(blockEnd); _vgaBufFreeStart = blockEnd; return block; - //} + } } }