Fixing compile for me, hopefully not breaking it for the MSVC8 again...

svn-id: r26508
This commit is contained in:
Sven Hesse 2007-04-15 16:26:12 +00:00
parent 2c3e9e087f
commit c8396a283d

View File

@ -235,7 +235,7 @@ void Snd::stopSound(int16 fadeLength, SoundDesc *sndDesc) {
_fade = true;
_fadeVol = 65536;
_fadeSamples = (int) (fadeLength * (((double) _rate) / 10.0));
_fadeVolStep = MAX(1UL, 65536 / _fadeSamples);
_fadeVolStep = MAX((int32) 1, (int32) (65536 / _fadeSamples));
_curFadeSamples = 0;
}
@ -341,7 +341,7 @@ void Snd::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency,
_fade = true;
_fadeVol = 0;
_fadeSamples = (int) (fadeLength * (((double) _rate) / 10.0));
_fadeVolStep = - (int32)MAX(1UL, 65536 / _fadeSamples);
_fadeVolStep = - MAX((int32) 1, (int32) (65536 / _fadeSamples));
}
}