Wrap (Integer) Blueprint Node

I’ve submitted a bug report for the Wrap (Integer) node because I think it doesn’t have the expected behavior. My values frequently end up with -1 or +1 than the expected value above or below min and max.

Meanwhile here’s my fix that should work for all real numbers (including negatives) and it should work for additions/subtractions with more than 1. I’m not much of a math guy, so please test it.

(In older Unreal versions connect the input wires)