Quote by taylorsnead:
Oh, I see now. Try using IsSprinting() in place of m_actions&ACTION_SPRINT, and where did you put your subtraction line?
After I tested, IsSprinting() doesn't work in this case. Finally I put the code inside "if (IsClient())" to solve the problem.
Anyway, thank you very much taylorsnead.