c89 fixes

This commit is contained in:
nehalmistry 2004-05-11 00:18:19 +00:00
parent cd9195d080
commit de90ee7232

View file

@ -316,13 +316,12 @@ local int HowManyFree(void)
local int KeepRequest(SoundRequest* sr) {
//FIXME: take fight flag into account
int channel;
const SoundChannel* theChannel;
if (sr->Sound == NO_SOUND) {
return 0;
}
const SoundChannel* theChannel;
// slow but working solution: we look for the source in the channels
theChannel = Channels;
for (channel = 0; channel < MaxChannels; ++channel) {