Skip to content

Commit

Permalink
gamespeed support
Browse files Browse the repository at this point in the history
  • Loading branch information
javier2409 committed Jun 11, 2019
1 parent c54b904 commit e8c9345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function setData(hitShape,dimension)
local finalRotation = saves[hitShape]['rot']
local finalPosition = saves[hitShape]['pos']

DURATION = math.floor(getCurrentFPS()*saves[hitShape]['duration'])
DURATION = math.floor(getCurrentFPS()*saves[hitShape]['duration']*(1/getGameSpeed()))
if DURATION < 1 then
DURATION = 1
end
ROTATION_HELP = saves[hitShape]['rothelp']

outputDebugString(string.format('Duration: %d frames',DURATION))
Expand Down

0 comments on commit e8c9345

Please sign in to comment.