Skip to content

Commit

Permalink
v0.4.2 bug correction
Browse files Browse the repository at this point in the history
  • Loading branch information
siteswapjuggler committed Sep 3, 2019
1 parent 6114a16 commit 05c4b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Ramp
version=0.4.1
version=0.4.2
author=Sylvain Garnavault <[email protected]>
maintainer=Sylvain Garnavault <[email protected]>
sentence=A library that manage interpolation beetween values.
Expand Down
4 changes: 2 additions & 2 deletions src/Ramp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ T _ramp<T>::update() {
template <class T>
bool _ramp<T>::isFinished() {
if (speed==FORWARD)
return (pos==dur);
return (pos>=dur);
if (speed==BACKWARD)
return (pos==0);
return (pos<=0);
}

template <class T>
Expand Down

0 comments on commit 05c4b75

Please sign in to comment.