Fixed Garnaout issue with cinematic \o/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9102 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
38f56d3f2e
commit
4c7e271606
@ -133,7 +133,8 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
|
|||||||
*/
|
*/
|
||||||
public void internalUpdate(float tpf) {
|
public void internalUpdate(float tpf) {
|
||||||
if (playState == PlayState.Playing) {
|
if (playState == PlayState.Playing) {
|
||||||
time = (elapsedTimePause + timer.getTimeInSeconds() - start) * speed;
|
//time = time+ (tpf * speed);
|
||||||
|
time = elapsedTimePause + (timer.getTimeInSeconds() - start) * speed;
|
||||||
|
|
||||||
onUpdate(tpf);
|
onUpdate(tpf);
|
||||||
if (time >= initialDuration && loopMode == loopMode.DontLoop) {
|
if (time >= initialDuration && loopMode == loopMode.DontLoop) {
|
||||||
@ -326,8 +327,8 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
|
|||||||
* @param time the time to fast forward to
|
* @param time the time to fast forward to
|
||||||
*/
|
*/
|
||||||
public void setTime(float time) {
|
public void setTime(float time) {
|
||||||
elapsedTimePause = time/speed;
|
elapsedTimePause = time / speed;
|
||||||
if(playState == PlayState.Playing){
|
if (playState == PlayState.Playing) {
|
||||||
start = timer.getTimeInSeconds();
|
start = timer.getTimeInSeconds();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -335,8 +336,4 @@ public abstract class AbstractCinematicEvent implements CinematicEvent {
|
|||||||
public float getTime() {
|
public float getTime() {
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user