diff --git a/ChangeLog b/ChangeLog index 912514347..134696ff4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-05-21 Victor Rachels + + * arch/win32/digi.c: digisound fixes (d1x r1.7) + 2004-05-21 Bradley Bell * main/inferno.c: added -udp documentation from d1x diff --git a/arch/win32/digi.c b/arch/win32/digi.c index 956a6c11a..8235bad00 100644 --- a/arch/win32/digi.c +++ b/arch/win32/digi.c @@ -259,7 +259,7 @@ TryNextChannel: SoundSlots[slot].soundno = soundnum; SoundSlots[slot].samples = Sounddat(soundnum)->data; - SoundSlots[slot].length = Sounddat[soundnum].length; + SoundSlots[slot].length = Sounddat(soundnum)->length; SoundSlots[slot].volume = fixmul(digi_volume, volume); SoundSlots[slot].pan = pan; SoundSlots[slot].position = 0; @@ -499,7 +499,6 @@ int digi_link_sound_to_object2(int soundnum, short objnum, int forever, fix max_ { int i, volume, pan; object *objp; - int soundnum; if (max_volume < 0) return -1;