GP: More tweaks to Time Offset

This commit is contained in:
Antonio Vazquez 2018-11-05 19:09:35 +01:00
parent fee6ab18e7
commit abbe4df301
1 changed files with 3 additions and 2 deletions

View File

@ -129,8 +129,9 @@ static int remapTime(
}
}
if (cfra > efra) {
cfra = sfra + (cfra - ((cfra / efra) * efra)) - 1;
if (cfra >= efra) {
int delta = efra - sfra + 1;
cfra = sfra + (cfra - ((cfra / delta) * delta)) - 1;
}
if (mmd->flag & GP_TIME_KEEP_LOOP) {