Properly resets the tile's Y flipping

This bug caused many tiles to be Y flipped if only one tile was actually intended to be flipped.
Merge pull request #2380 from NatWeiss/patch-2

Properly resets the tile's Y flipping