aboutsummaryrefslogtreecommitdiff
path: root/engines/simon
diff options
context:
space:
mode:
Diffstat (limited to 'engines/simon')
-rw-r--r--engines/simon/simon.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 12c17b90ce..02b3bebcf7 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;
- //}
+ }
}
}