Rename 'bound' to 'clamp'

This commit is contained in:
Jonas Kulla 2013-09-03 15:31:29 +02:00
parent f81e20cc68
commit 84db116d0c
6 changed files with 27 additions and 27 deletions

View file

@ -96,8 +96,8 @@ struct MusicEntity
{
terminateFade();
volume = bound<int>(volume, 0, 100);
pitch = bound<int>(pitch, 50, 150);
volume = clamp<int>(volume, 0, 100);
pitch = clamp<int>(pitch, 50, 150);
if (filename == this->filename
&& volume == (int)music.getVolume()
@ -386,7 +386,7 @@ struct SoundEntity
{
(void) pitch;
volume = bound<int>(volume, 0, 100);
volume = clamp<int>(volume, 0, 100);
sf::SoundBuffer &buffer = allocateBuffer(filename);