Skip to content

Commit 84f5a30

Browse files
author
Julien Poulton
committed
Merge branch '4697-frame-zero-duration' into 'master'
[FIX][SDK] frame zero should have a duration of 0 See merge request codingame/game-engine!149
2 parents 53f191e + 67db62e commit 84f5a30

File tree

1 file changed

+1
-0
lines changed
  • engine/core/src/main/resources/view/core

1 file changed

+1
-0
lines changed

engine/core/src/main/resources/view/core/Drawer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ export class Drawer {
382382
}
383383
if (parsedFrame === parsedFrame.previous) {
384384
parsedFrame.frameInfo.date = 0
385+
parsedFrame.frameInfo.frameDuration = 0
385386
} else {
386387
parsedFrame.frameInfo.date = parsedFrame.previous.frameInfo.date + parsedFrame.previous.frameInfo.frameDuration
387388
}

0 commit comments

Comments
 (0)