if (playerenters) { this.lastpx = -1000; } if (playerenters || timeout) { if (mousebuttons%2>=1) { if (this.lastpx>-1000) { dx = (mousex-this.lastpx); dy = (mousey-this.lastpy); dist = (abs(dx)>abs(dy)? abs(dx) : abs(dy)); for (di=0; di