Fix road tiles facing in wrong direction in some cases.

Fixes road tiles pointing in the wrong direction when `tileX-1`, `tileX+1`, `tileY-1` or `tileY+1` is out of bounds.