From 0c5e5341bd10a228f28bd254f09b1aa08e1fd3bc Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 30 Jan 2012 21:15:28 +0000 Subject: [PATCH] Time in cinematic is now computed by stacking tpf git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9122 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/cinematic/events/AbstractCinematicEvent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/cinematic/events/AbstractCinematicEvent.java b/engine/src/core/com/jme3/cinematic/events/AbstractCinematicEvent.java index 42734a556..84d087910 100644 --- a/engine/src/core/com/jme3/cinematic/events/AbstractCinematicEvent.java +++ b/engine/src/core/com/jme3/cinematic/events/AbstractCinematicEvent.java @@ -133,8 +133,8 @@ public abstract class AbstractCinematicEvent implements CinematicEvent { */ public void internalUpdate(float tpf) { if (playState == PlayState.Playing) { - //time = time+ (tpf * speed); - time = elapsedTimePause + (timer.getTimeInSeconds() - start) * speed; + time = time+ (tpf * speed); + //time = elapsedTimePause + (timer.getTimeInSeconds() - start) * speed; onUpdate(tpf); if (time >= initialDuration && loopMode == loopMode.DontLoop) {