1
0
forked from 0ad/0ad

Fix signed/unsigned comparison warning.

This was SVN commit r13274.
This commit is contained in:
leper 2013-03-13 16:23:27 +00:00
parent b75183eba2
commit 56784aceab
2 changed files with 4 additions and 4 deletions

View File

@ -157,7 +157,7 @@ float CSoundGroup::RadiansOffCenter(const CVector3D& position, bool& onScreen, f
return answer;
}
void CSoundGroup::UploadPropertiesAndPlay(int theIndex, const CVector3D& position, entity_id_t source)
void CSoundGroup::UploadPropertiesAndPlay(size_t theIndex, const CVector3D& position, entity_id_t source)
{
#if CONFIG2_AUDIO
if ( g_SoundManager )
@ -228,7 +228,7 @@ void CSoundGroup::PlayNext(const CVector3D& position, entity_id_t source)
if (filenames.size() == 0)
return;
m_index = (size_t)rand(0, (size_t)filenames.size());
m_index = rand(0, (size_t)filenames.size());
UploadPropertiesAndPlay(m_index, position, source);
}

View File

@ -108,11 +108,11 @@ public:
private:
void SetGain(float gain);
void UploadPropertiesAndPlay(int theIndex, const CVector3D& position, entity_id_t source);
void UploadPropertiesAndPlay(size_t theIndex, const CVector3D& position, entity_id_t source);
void SetDefaultValues();
int m_index; // index of the next sound to play
size_t m_index; // index of the next sound to play
#if CONFIG2_AUDIO
std::vector<CSoundData*> snd_group; // we store the handles so we can load now and play later