Closed tobbi closed 2 years ago
if you have time try :
// First test: give the terrain effect, if the kart is
// on top of a surface (i.e. not falling), actually touching
// something with the wheels, and the material has not the
// below surface property set.
if (material && isOnGround() && !material->isBelowSurface() &&
!getKartAnimation() && UserConfigParams::m_particles_effects > 1)
{
// Make sure camera is reset if on ground, see #2916
for (unsigned i = 0; i < Camera::getNumCameras(); i++)
{
if (material->isDriveReset())
break;
Camera *camera = Camera::getCamera(i);
if (camera->getKart() != this)
continue;
if (camera->getMode() == Camera::CM_FALLING)
camera->setMode(Camera::CM_NORMAL);
} // for i in all cameras for this kart
// Get the appropriate particle data depending on
// wether the kart is skidding or driving.
const ParticleKind* pk =
material->getParticlesWhen(m_skidding->isSkidding()
? Material::EMIT_ON_SKID
: Material::EMIT_ON_DRIVE);
if(!pk)
{
// Disable potentially running particle effects
m_kart_gfx->setCreationRateAbsolute(KartGFX::KGFX_TERRAIN, 0);
return; // no particle effect, return
}
m_kart_gfx->updateTerrain(pk);
return;
}
around kart.cpp:2037
Thanks. That seems to have fixed it.
Description
In the add-on level, Imminent Cold effects, you can skip part of the track by jumping over a wooden bridge, so to speak.
Steps to reproduce
Configuration
STK release version: master
STK Source (PPA, distribution package, official binary, etc.): self-compiled
System:
Graphics card: Intel HD Graphics 4000 1536 MB
CPU: 2,3 GHz Intel Core i7
Gamepads/keyboards models if related to the issue:
Additional information
stdout.log:
Video of the issue: https://youtu.be/0hF4LFcFMr4