Skip to content

Commit

Permalink
Fixed a case where we should be rounding rather than typecasting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettering committed Apr 20, 2016
1 parent e18f277 commit 980e772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/classes/predictive_player_motion.cfg
Expand Up @@ -17,7 +17,7 @@
} where inv_pred = inverse_prediction(number_of_frames_to_look_ahead)",

inverse_prediction: "def(int number_of_frames_to_look_ahead) -> [int, int] predict_from(
map(fold(_player_history[size(_player_history)-samples:], zip([int]<-a,[int]<-b)), (int<-value)/samples)
map(fold(_player_history[size(_player_history)-samples:], zip(map(a, lib.math.round(value)),map(b, lib.math.round(value)))), (int<-value)/samples)
) asserting size(_player_history) >= samples | q(It's not possible to sample further back in history than we've actually recorded)
where samples = number_of_frames_to_look_ahead",

Expand Down

0 comments on commit 980e772

Please sign in to comment.