From 82a396ed5687d05b3673d1ddad59ec9316c11f40 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 21 Apr 2018 16:30:38 +0800 Subject: [PATCH] Fix kart headlight in network --- src/karts/kart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index afa94b39a..f3163e7d2 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -2724,7 +2724,8 @@ void Kart::updateFlying() */ 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); #ifdef DEBUG