if (con != 0) exit; var __dir = 0; if (global.facing == 3) __dir = -1; else if (global.facing == 1) __dir = 1; else __dir = sign(other.x - other.xprevious); if (__dir == viable_directions || viable_directions == 0) { if (con == 0) { con = 1; dashdir = __dir; } }