Move dx and dy from static hack.c variables to turnstate (fixes 398).