if (updatefacing) { if (x < xprevious) facing = 0; if (x > xprevious) facing = 1; }