Fixed animation bug caused by entity moving by half-a-pixel