if (m_pCurrentEntity->curstate.movetype == MOVETYPE_STEP) { float f = 0; float d; // don't do it if the goalstarttime hasn't updated in a while.