We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48da00e commit c563ba1Copy full SHA for c563ba1
src/karts/ghost_kart.cpp
@@ -247,7 +247,9 @@ void GhostKart::update(int ticks)
247
// ----------------------------------------------------------------------------
248
void GhostKart::updateSound(float dt)
249
{
250
- if (!getController()) return;
+ if (!getController() ||
251
+ World::getWorld()->getPhase() == World::IN_GAME_MENU_PHASE)
252
+ return;
253
254
GhostController* gc = dynamic_cast<GhostController*>(getController());
255
if (gc == NULL) return;
0 commit comments