Partial fix to distances frozen in cannons

This commit is contained in:
Alayan 2018-09-27 21:30:32 +02:00 committed by auriamg
parent 02859b673e
commit 21af25ef9b

View File

@ -24,6 +24,7 @@
#include "audio/sfx_manager.hpp"
#include "config/user_config.hpp"
#include "karts/abstract_kart.hpp"
#include "karts/cannon_animation.hpp"
#include "karts/controller/controller.hpp"
#include "karts/ghost_kart.hpp"
#include "karts/kart_properties.hpp"
@ -240,7 +241,9 @@ void LinearWorld::updateTrackSectors()
// Nothing to do for karts that are currently being
// rescued or eliminated
if(kart->getKartAnimation()) continue;
if(kart->getKartAnimation() &&
!dynamic_cast<CannonAnimation*>(kart->getKartAnimation()))
continue;
// If the kart is off road, and 'flying' over a reset plane
// don't adjust the distance of the kart, to avoid a jump
// in the position of the kart (e.g. while falling the kart