From 03ee1c6fe87166ed8be04f3f9467189d946fbe8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 28 Sep 2018 13:03:51 +0200 Subject: [PATCH] Animation: minor cleanup. --- src/Magnum/Animation/Player.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Animation/Player.hpp b/src/Magnum/Animation/Player.hpp index 8a487d01c..5774dff18 100644 --- a/src/Magnum/Animation/Player.hpp +++ b/src/Magnum/Animation/Player.hpp @@ -195,14 +195,14 @@ template Containers::Optional> playe std::chrono::duration doesn't have operator bool, so I need to compare to default-constructed value. Ugh. */ - if(state == State::Paused && (stopPauseTime != T{})) { + if(state == State::Paused && stopPauseTime != T{}) { startTime = stopPauseTime - startTime; timeToUse = startTime; stopPauseTime = {}; /* The animation was stopped by the user right before this iteration, "park" the animation to the initial time */ - } else if(state == State::Stopped && (stopPauseTime != T{})) { + } else if(state == State::Stopped && stopPauseTime != T{}) { timeToUse = {}; startTime = {}; stopPauseTime = {};