Fix signed/unsigned comparison warning.
This was SVN commit r13274.
This commit is contained in:
parent
b75183eba2
commit
56784aceab
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user