Update patch with better one provided upstream.
Obtained from: https://trac.wildfiregames.com/changeset/19947