Converted applicable enumerations to strongly typed enumerations.
This commit is contained in:
parent
b3b094fc91
commit
24db1dba1a
74 changed files with 1242 additions and 1251 deletions
|
@ -29,7 +29,7 @@ void playSound()
|
|||
sound.play();
|
||||
|
||||
// Loop while the sound is playing
|
||||
while (sound.getStatus() == sf::Sound::Playing)
|
||||
while (sound.getStatus() == sf::Sound::Status::Playing)
|
||||
{
|
||||
// Leave some CPU time for other processes
|
||||
sf::sleep(sf::milliseconds(100));
|
||||
|
@ -63,7 +63,7 @@ void playMusic(const std::string& filename)
|
|||
music.play();
|
||||
|
||||
// Loop while the music is playing
|
||||
while (music.getStatus() == sf::Music::Playing)
|
||||
while (music.getStatus() == sf::Music::Status::Playing)
|
||||
{
|
||||
// Leave some CPU time for other processes
|
||||
sf::sleep(sf::milliseconds(100));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue