Code: Select all
// delete entry
Impacts.erase(i);
i--;
// play impact sound
#ifdef USE_IRRKLANG
if (irrKlang)
irrKlang->play3D(impactSound, Impacts[i].pos, false,false,false);
#endif
#ifdef USE_SDL_MIXER
if (impactSound)
playSound(impactSound);
#endif
Code: Select all
// play impact sound
#ifdef USE_IRRKLANG
if (irrKlang)
irrKlang->play3D(impactSound, Impacts[i].pos, false,false,false);
#endif
#ifdef USE_SDL_MIXER
if (impactSound)
playSound(impactSound);
#endif
// delete entry
Impacts.erase(i);
i--;