Fix walking animation

Previously, when walking with negative x-coordinate, your walking direction was
inversed.

**EDIT:** This fixes #1153.