Add easing to GuiPhaseBar, simplify math a bit.

This commit is contained in:
Tobias Loose
2013-12-09 22:17:19 +01:00
parent 1e610ff653
commit 4c627f74b6
5 changed files with 53 additions and 67 deletions

View File

@@ -95,7 +95,7 @@ public:
*/
void update(float dt)
{
if(duration > 0)
if(time_acc < duration)
{
time_acc += dt;