tots els singletons tornats a fer a la vieja y gorda usanza
This commit is contained in:
@@ -221,7 +221,7 @@ void Player::move()
|
||||
++step_counter_;
|
||||
if (step_counter_ % 10 == 0)
|
||||
{
|
||||
Audio::get().playSound("walk.wav");
|
||||
Audio::get()->playSound("walk.wav");
|
||||
}
|
||||
|
||||
switch (id_)
|
||||
@@ -252,7 +252,7 @@ void Player::move()
|
||||
++step_counter_;
|
||||
if (step_counter_ % 10 == 0)
|
||||
{
|
||||
Audio::get().playSound("walk.wav");
|
||||
Audio::get()->playSound("walk.wav");
|
||||
}
|
||||
|
||||
switch (id_)
|
||||
@@ -752,7 +752,7 @@ void Player::decContinueCounter()
|
||||
}
|
||||
else
|
||||
{
|
||||
Audio::get().playSound("continue_clock.wav");
|
||||
Audio::get()->playSound("continue_clock.wav");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -798,5 +798,5 @@ void Player::shiftSprite()
|
||||
void Player::playRandomBubbleSound()
|
||||
{
|
||||
const std::vector<std::string> sounds = {"bubble1.wav", "bubble2.wav", "bubble3.wav", "bubble4.wav"};
|
||||
Audio::get().playSound(sounds.at(rand() % sounds.size()));
|
||||
Audio::get()->playSound(sounds.at(rand() % sounds.size()));
|
||||
}
|
||||
Reference in New Issue
Block a user