diff --git a/script_v2.cpp b/script_v2.cpp index 3c20d0c0692..e4f3cec9f7a 100644 --- a/script_v2.cpp +++ b/script_v2.cpp @@ -1762,6 +1762,7 @@ void Scumm::o6_actorSet() { } a = derefActorSafe(_curActor, "o6_actorSet"); + if (!a) return; switch(b) { case 76: /* actor-costume */ diff --git a/scumm.h b/scumm.h index ab72b5560e0..13185a5a6a0 100644 --- a/scumm.h +++ b/scumm.h @@ -40,11 +40,7 @@ enum { NUM_SCRIPT_SLOT = 25, NUM_LOCALSCRIPT = 60, NUM_SHADOW_PALETTE = 8, -#if defined(FULL_THROTTLE) NUM_ACTORS = 30 -#else - NUM_ACTORS = 13 -#endif }; diff --git a/sound.cpp b/sound.cpp index 62f05e9f7d8..8f3cfa13868 100644 --- a/sound.cpp +++ b/sound.cpp @@ -385,8 +385,6 @@ void *Scumm::openSfxFile() { return file; } -#define NUM_MIXER 4 - MixerChannel *Scumm::allocateMixer() { int i; MixerChannel *mc = _mixer_channel; diff --git a/sound/imuse.cpp b/sound/imuse.cpp index d074e78056c..84aeefe5773 100644 --- a/sound/imuse.cpp +++ b/sound/imuse.cpp @@ -40,11 +40,11 @@ int num_mix; #define TRIGGER_ID 0 #define COMMAND_ID 1 -#ifdef SAMNMAX +//#ifdef SAMNMAX #define MDHD_TAG "MDpg" -#else - #define MDHD_TAG "MDhd" -#endif +//#else +// #define MDHD_TAG "MDhd" +//#endif int clamp(int val, int min, int max) { if (valfindTag(sound, MDHD_TAG, 0); - if (mdhd==NULL) + if (mdhd==NULL) { + warning("P::start_sound failed: Couldn't find %s", MDHD_TAG); return false; - + } _parts = NULL; _active = true; _id = sound;