Engine: fixed value overflow when storing movement destination

This corrects the character and object movement to negative Y coordinates in hi-res games.