aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse_digi
diff options
context:
space:
mode:
authorMax Horn2008-01-18 16:38:11 +0000
committerMax Horn2008-01-18 16:38:11 +0000
commitc2d1554c7d0e61e3c5dec74bbad64d91906228cf (patch)
tree2cadad4e42bec645f62750cd721b4697ffa34a23 /engines/scumm/imuse_digi
parente6c20003c04fdfba9b72a2d577fb95c02fac786e (diff)
downloadscummvm-rg350-c2d1554c7d0e61e3c5dec74bbad64d91906228cf.tar.gz
scummvm-rg350-c2d1554c7d0e61e3c5dec74bbad64d91906228cf.tar.bz2
scummvm-rg350-c2d1554c7d0e61e3c5dec74bbad64d91906228cf.zip
Don't hardcode value for which we have wonderful and nice constants defined ;)
svn-id: r30549
Diffstat (limited to 'engines/scumm/imuse_digi')
-rw-r--r--engines/scumm/imuse_digi/dimuse.h6
-rw-r--r--engines/scumm/imuse_digi/dimuse_track.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/scumm/imuse_digi/dimuse.h b/engines/scumm/imuse_digi/dimuse.h
index c35f351c60..45d5024695 100644
--- a/engines/scumm/imuse_digi/dimuse.h
+++ b/engines/scumm/imuse_digi/dimuse.h
@@ -39,8 +39,10 @@
namespace Scumm {
-#define MAX_DIGITAL_TRACKS 8
-#define MAX_DIGITAL_FADETRACKS 8
+enum {
+ MAX_DIGITAL_TRACKS = 8,
+ MAX_DIGITAL_FADETRACKS = 8
+};
struct imuseDigTable;
struct imuseComiTable;
diff --git a/engines/scumm/imuse_digi/dimuse_track.cpp b/engines/scumm/imuse_digi/dimuse_track.cpp
index 4ba0153a93..179779a0dc 100644
--- a/engines/scumm/imuse_digi/dimuse_track.cpp
+++ b/engines/scumm/imuse_digi/dimuse_track.cpp
@@ -341,7 +341,7 @@ IMuseDigital::Track *IMuseDigital::cloneToFadeOutTrack(Track *track, int fadeDel
return NULL;
}
- assert(track->trackId < 8);
+ assert(track->trackId < MAX_DIGITAL_TRACKS);
fadeTrack = _track[track->trackId + MAX_DIGITAL_TRACKS];
if (fadeTrack->used) {