Fixed two similar time keyframes not setting the Replay Speed to 0 sometimes

This commit is contained in:
Marius Metzger
2015-03-31 17:50:39 +02:00
parent becbf47088
commit 5b859340fd
6 changed files with 50 additions and 39 deletions

View File

@@ -119,12 +119,12 @@ public class ReplayHandler {
return cameraEntity;
}
public static int getDesiredTimestamp() {
return replaySender == null ? 0 : (int)replaySender.getDesiredTimestamp();
}
public static int getReplayTime() {
if(replaySender != null) {
return (int)replaySender.currentTimeStamp();
}
return 0;
return replaySender == null ? 0 : (int)replaySender.currentTimeStamp();
}
public static void sortKeyframes() {
@@ -279,7 +279,7 @@ public class ReplayHandler {
selectKeyframe(null);
}
public static void setReplayPos(int pos) {
public static void setReplayTime(int pos) {
if(replaySender != null) {
replaySender.jumpToTime(pos);
}