don't update rain during pause

This commit is contained in:
milek7
2018-10-18 22:46:51 +02:00
parent 1761f0b367
commit e3cfa2acbe
3 changed files with 11 additions and 4 deletions

View File

@@ -111,7 +111,7 @@ basic_precipitation::init() {
void
basic_precipitation::update() {
auto const timedelta { static_cast<float>( ( DebugModeFlag ? Timer::GetDeltaTime() : Timer::GetDeltaTime() ) ) };
auto const timedelta = Timer::GetDeltaTime();
if( timedelta == 0.0 ) { return; }