Fix kart headlight in network

This commit is contained in:
Benau 2018-04-21 16:30:38 +08:00
parent ba681a7cf8
commit 82a396ed56

View File

@ -2724,7 +2724,8 @@ void Kart::updateFlying()
*/ */
void Kart::loadData(RaceManager::KartType type, bool is_animated_model) void Kart::loadData(RaceManager::KartType type, bool is_animated_model)
{ {
bool always_animated = (type == RaceManager::KT_PLAYER && race_manager->getNumPlayers() == 1); bool always_animated = (type == RaceManager::KT_PLAYER &&
race_manager->getNumLocalPlayers() == 1);
m_node = m_kart_model->attachModel(is_animated_model, always_animated); m_node = m_kart_model->attachModel(is_animated_model, always_animated);
#ifdef DEBUG #ifdef DEBUG