mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Code style: rename variable id
to NextID
This commit is contained in:
parent
4bc88712b9
commit
1fb46b760c
|
@ -864,11 +864,11 @@ ISound::CVoiceHandle CSound::Play(int ChannelID, int SampleID, int Flags, float
|
||||||
int VoiceID = -1;
|
int VoiceID = -1;
|
||||||
for(int i = 0; i < NUM_VOICES; i++)
|
for(int i = 0; i < NUM_VOICES; i++)
|
||||||
{
|
{
|
||||||
int id = (m_NextVoice + i) % NUM_VOICES;
|
int NextID = (m_NextVoice + i) % NUM_VOICES;
|
||||||
if(!m_aVoices[id].m_pSample)
|
if(!m_aVoices[NextID].m_pSample)
|
||||||
{
|
{
|
||||||
VoiceID = id;
|
VoiceID = NextID;
|
||||||
m_NextVoice = id + 1;
|
m_NextVoice = NextID + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue