Skip to content

Commit e637eea

Browse files
Merge pull request #3337 from JohnAFernandez/Interpolation-Bug
Fix a rare but eventual crash in the interpolation code.
2 parents f3e3769 + e218f68 commit e637eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/network/multi_obj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,7 @@ void multi_oo_calc_interp_splines(int player_id, object* objp, matrix *new_orien
33873387
float delta = multi_oo_calc_pos_time_difference(player_id, net_sig_idx);
33883388
// if an error or invalid value, use the local timestamps instead of those received. Should be rare.
33893389
if (delta <= 0.0f) {
3390-
delta = (float)(timestamp() - Oo_info.received_frametimes[player_id].at(Oo_info.interp[net_sig_idx].pos_timestamp)) / TIMESTAMP_FREQUENCY;
3390+
delta = (float)(timestamp() - Oo_info.interp[net_sig_idx].pos_timestamp) / TIMESTAMP_FREQUENCY;
33913391
}
33923392

33933393
Oo_info.interp[net_sig_idx].pos_time_delta = delta;

0 commit comments

Comments
 (0)