eh, hope this fixes

This commit is contained in:
Oswald Auguste de Bruin 2013-10-16 13:55:56 +02:00
parent ffc0a2c2aa
commit f1b3ff276e

View file

@ -227,11 +227,9 @@ int main(int argc, char** argv){
if ( !source.getJSON()){
playing = 0;
}
if (source.atKeyframe()){
if (playing > 0){
if (playing > 0 && source.atKeyframe()){
--playing;
}
}
if (lastTime == 0){
lastTime = now - source.getJSON()["time"].asInt();
}