[core] Factor timePoint initialization

This commit is contained in:
John Firebaugh
2017-05-03 10:13:01 -07:00
parent 88093bd708
commit 3790caafa3
2 changed files with 5 additions and 3 deletions

View File

@@ -227,7 +227,9 @@ void Map::Impl::render(View& view) {
return;
}
TimePoint timePoint = Clock::now();
TimePoint timePoint = mode == MapMode::Continuous
? Clock::now()
: Clock::time_point::max();
auto flags = transform.updateTransitions(timePoint);