The SFX resource for the IHNM demo is different

svn-id: r28138
This commit is contained in:
Filippos Karapetis 2007-07-18 16:14:40 +00:00
parent af4d04100e
commit 32c87556de
2 changed files with 8 additions and 2 deletions

View File

@ -45,6 +45,7 @@ namespace Saga {
#define RID_IHNMDEMO_SCENE_LUT 286
#define RID_IHNMDEMO_SCRIPT_LUT 18
#define RID_IHNMDEMO_SFX_LUT 222
//obj names
#define ITE_OBJ_MAP 14

View File

@ -68,8 +68,13 @@ SndRes::SndRes(SagaEngine *vm) : _vm(vm) {
byte *resourcePointer;
size_t resourceLength;
if (_vm->getGameId() == GID_IHNM_DEMO) {
_vm->_resource->loadResource(resourceContext, RID_IHNMDEMO_SFX_LUT,
resourcePointer, resourceLength);
} else {
_vm->_resource->loadResource(resourceContext, RID_IHNM_SFX_LUT,
resourcePointer, resourceLength);
}
if (resourceLength == 0) {
error("Sndres::SndRes can't read SfxIDs table");