diff options
author | Travis Howell | 2006-04-20 05:54:25 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-20 05:54:25 +0000 |
commit | 8121b8eebe63b801bd545537b490112dba10a4ac (patch) | |
tree | 2d7d019c0bda48681b2c625e0ab79204c640df64 | |
parent | afb264a4275cc222e55b49d2abdbeb23c6ef1068 (diff) | |
download | scummvm-rg350-8121b8eebe63b801bd545537b490112dba10a4ac.tar.gz scummvm-rg350-8121b8eebe63b801bd545537b490112dba10a4ac.tar.bz2 scummvm-rg350-8121b8eebe63b801bd545537b490112dba10a4ac.zip |
Update resource managment, missed several changes from FF
svn-id: r22049
-rw-r--r-- | engines/simon/simon.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index 21af9481a8..c61bd6f2f3 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -2175,15 +2175,15 @@ void SimonEngine::checkNoOverWrite(byte *end) { vpe = &_vgaBufferPointers[_noOverWrite]; - if (_vgaBufFreeStart <= vpe->vgaFile1 && end >= vpe->vgaFile1End) { + if (vpe->vgaFile1 < end && vpe->vgaFile1End > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->vgaFile1End; - } else if (_vgaBufFreeStart <= vpe->vgaFile2 && end >= vpe->vgaFile2End) { + } else if (vpe->vgaFile2 < end && vpe->vgaFile2End > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->vgaFile2End; - } else if (_vgaBufFreeStart <= vpe->sfxFile && end >= vpe->sfxFileEnd) { + } else if (vpe->sfxFile && vpe->sfxFile < end && vpe->sfxFileEnd > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->sfxFileEnd; @@ -2210,9 +2210,9 @@ void SimonEngine::checkZonePtrs(byte *end) { uint count = ARRAYSIZE(_vgaBufferPointers); VgaPointersEntry *vpe = _vgaBufferPointers; do { - if (_vgaBufFreeStart <= vpe->vgaFile1 && end >= vpe->vgaFile1End || - _vgaBufFreeStart <= vpe->vgaFile2 && end >= vpe->vgaFile2End || - _vgaBufFreeStart <= vpe->sfxFile && end >= vpe->sfxFileEnd) { + if (vpe->vgaFile1 < end && vpe->vgaFile1End > _vgaBufFreeStart || + vpe->vgaFile2 < end && vpe->vgaFile2End > _vgaBufFreeStart || + vpe->sfxFile < end && vpe->sfxFileEnd > _vgaBufFreeStart) { vpe->vgaFile1 = NULL; vpe->vgaFile1End = NULL; vpe->vgaFile2 = NULL; @@ -2229,15 +2229,15 @@ void SimonEngine::checkAnims(uint a, byte *end) { vpe = &_vgaBufferPointers[a]; - if (_vgaBufFreeStart <= vpe->vgaFile1 && end >= vpe->vgaFile1End) { + if (vpe->vgaFile1 < end && vpe->vgaFile1End > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->vgaFile1End; - } else if (_vgaBufFreeStart <= vpe->vgaFile2 && end >= vpe->vgaFile2End) { + } else if (vpe->vgaFile2 < end && vpe->vgaFile2End > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->vgaFile2End; - } else if (_vgaBufFreeStart <= vpe->sfxFile && end >= vpe->sfxFileEnd) { + } else if (vpe->sfxFile && vpe->sfxFile < end && vpe->sfxFileEnd > _vgaBufFreeStart) { _rejectBlock = true; _rejectCount++; _vgaBufFreeStart = vpe->sfxFileEnd; |