Fix broken kart animation for countdown timer in result screen

This commit is contained in:
Benau 2019-11-24 12:14:29 +08:00
parent fe028b4534
commit 520f1c7d3a
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Modify this file to change the last-modified date when you add/remove a file.
# This will then trigger a new cmake run automatically.
# This will then trigger a new cmake run automatically.
file(GLOB_RECURSE STK_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.hpp")
file(GLOB_RECURSE STK_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.cpp")
file(GLOB_RECURSE STK_SHADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "data/shaders/*")

View File

@ -450,7 +450,9 @@ void WorldStatus::updateTime(int ticks)
{
m_time_ticks = 0;
m_time = 0.0f;
m_count_up_ticks = 0;
// For rescue animation playing (if any) in result screen
if (!device->getTimer()->isStopped())
m_count_up_ticks++;
break;
}