diff --git a/data/challenges/fortmagma.challenge b/data/challenges/fortmagma.challenge index 0d9aab520..d2993a51c 100644 --- a/data/challenges/fortmagma.challenge +++ b/data/challenges/fortmagma.challenge @@ -3,7 +3,7 @@ - + diff --git a/data/gui/dialogs/kart_color_slider.stkgui b/data/gui/dialogs/kart_color_slider.stkgui index 123d39ea4..423d96a1e 100644 --- a/data/gui/dialogs/kart_color_slider.stkgui +++ b/data/gui/dialogs/kart_color_slider.stkgui @@ -5,8 +5,10 @@ -
- +
+ + +
diff --git a/data/stk_config.xml b/data/stk_config.xml index 0c75d6b9d..fe8cd1bf2 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -548,7 +548,12 @@ --> - a.m_date; + return m_date < a.m_date; break; } // switch // Fix compiler warning. diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index 89ee1ed38..2107b8b29 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -1738,10 +1738,10 @@ void Skin::drawListHeader(const irr::core::rect< irr::s32 > &rect, ITexture* img; if (((ListWidget*)widget->m_event_handler)->m_sort_desc) img = - SkinConfig::m_render_params["list_sort_up::neutral"].getImage(); + SkinConfig::m_render_params["list_sort_down::neutral"].getImage(); else img = - SkinConfig::m_render_params["list_sort_down::neutral"].getImage(); + SkinConfig::m_render_params["list_sort_up::neutral"].getImage(); core::recti destRect(rect.UpperLeftCorner, core::dimension2di(rect.getHeight(), diff --git a/src/karts/controller/local_player_controller.cpp b/src/karts/controller/local_player_controller.cpp index 3899c9957..8c7e35fe1 100644 --- a/src/karts/controller/local_player_controller.cpp +++ b/src/karts/controller/local_player_controller.cpp @@ -307,7 +307,7 @@ void LocalPlayerController::displayPenaltyWarning() m->addMessage(_("Penalty time!!"), m_kart, 2.0f, GUIEngine::getSkin()->getColor("font::top"), true /* important */, false /* big font */, true /* outline */); - m->addMessage(_("Don't accelerate before go"), m_kart, 2.0f, + m->addMessage(_("Don't accelerate before 'Set!'"), m_kart, 2.0f, GUIEngine::getSkin()->getColor("font::normal"), true /* important */, false /* big font */, true /* outline */); } diff --git a/src/network/smooth_network_body.cpp b/src/network/smooth_network_body.cpp index 6d6dd4dc9..195d845b5 100644 --- a/src/network/smooth_network_body.cpp +++ b/src/network/smooth_network_body.cpp @@ -77,10 +77,6 @@ void SmoothNetworkBody::checkSmoothing(const btTransform& current_transform, if (adjust_time > m_max_adjust_time) return; - m_smoothing = SS_TO_ADJUST; - m_adjust_time_dt = 0.0f; - m_adjust_time = adjust_time; - m_start_smoothing_postion.first = m_smoothing == SS_NONE ? m_prev_position_data.first.getOrigin() : m_smoothed_transform.getOrigin(); @@ -89,6 +85,10 @@ void SmoothNetworkBody::checkSmoothing(const btTransform& current_transform, m_smoothed_transform.getRotation(); m_start_smoothing_postion.second.normalize(); + m_smoothing = SS_TO_ADJUST; + m_adjust_time_dt = 0.0f; + m_adjust_time = adjust_time; + m_adjust_control_point = m_start_smoothing_postion.first + m_prev_position_data.second * m_adjust_time; Vec3 p2 = current_transform.getOrigin() + current_velocity * m_adjust_time; diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index 72a9a0f4f..7e7550dbf 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -1645,12 +1645,17 @@ void RaceResultGUI::displayCTFResults() if (race_manager->modeHasLaps()) { float best_lap_time = static_cast(World::getWorld())->getFastestLap(); - core::stringw best_lap_string = _("Best lap time: %s", - StringUtils::timeToString(best_lap_time, time_precision).c_str()); - current_y += int(m_distance_between_rows * 0.8f); - GUIEngine::getFont()->draw(best_lap_string, - core::recti(x, current_y, 0, 0), white_color, false, false, - nullptr, true); + // The fastest lap ticks is set to INT_MAX, so the best_lap_time will be + // very high when none has been set yet. + if (best_lap_time <= 3600.0) + { + core::stringw best_lap_string = _("Best lap time: %s", + StringUtils::timeToString(best_lap_time, time_precision).c_str()); + current_y += int(m_distance_between_rows * 0.8f); + GUIEngine::getFont()->draw(best_lap_string, + core::recti(x, current_y, 0, 0), white_color, false, false, + nullptr, true); + } } // if mode has laps } // if not soccer mode #endif