ReignEngine: Set loop frame range for particle effects

Without this, update_motion cannot calculate current_frame correctly
when the effect is used with RE_MOTION_STATE_LOOP state.
This commit is contained in:
kichikuou
2022-11-05 20:56:26 +09:00
parent 814ebb7d3d
commit 241f631d9d
+2 -2
View File
@@ -741,8 +741,8 @@ void particle_effect_calc_frame_range(struct particle_effect *effect, struct mot
if (end_frame < obj_end)
end_frame = obj_end;
}
motion->frame_begin = begin_frame;
motion->frame_end = end_frame;
motion->frame_begin = motion->loop_frame_begin = begin_frame;
motion->frame_end = motion->loop_frame_end = end_frame;
}
static void update_camera_quake(struct RE_instance *inst, struct particle_object *po)