Rename 'bound' to 'clamp'
This commit is contained in:
parent
f81e20cc68
commit
84db116d0c
6 changed files with 27 additions and 27 deletions
src
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue