ASYLUM: NEW SOUND SUBSYSTEM! This is still sort of WIP though because it's not a "true" implementation (direct from disassembly). It also doesn't really do anything with the new ambient sound queue, but the functionality's there for when we make more progress on the AmbientSoundItem initializations.

Also started to re-write updateBarriers(). The original is there as updateBarriers2() for the time being.

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@362 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
This commit is contained in:
Alex Bevilacqua 2009-09-20 21:10:43 +00:00 committed by Eugene Sandulenko
parent 461ddd8dd0
commit 52206f1189
No known key found for this signature in database
GPG key ID: 014D387312D34F08
14 changed files with 471 additions and 69 deletions

View file

@ -72,7 +72,7 @@ void ResourcePack::init(const char *resourceFile) {
}
ResourceEntry *ResourcePack::getResource(uint32 resourceId) {
uint16 index = resourceId & 0xFFFF;
uint16 index = RESIDX(resourceId);
if (!_resources[index].data) {
// Load the requested resource if it's not loaded already
_packFile.seek(_resources[index].offset, SEEK_SET);