| 684 | |
| 685 | |
| 686 | double cPlayer::GetMaxSpeed(void) const |
| 687 | { |
| 688 | if (m_IsFlying) |
| 689 | { |
| 690 | return m_FlyingMaxSpeed; |
| 691 | } |
| 692 | else |
| 693 | { |
| 694 | if (m_IsSprinting) |
| 695 | { |
| 696 | return m_SprintingMaxSpeed; |
| 697 | } |
| 698 | else |
| 699 | { |
| 700 | return m_NormalMaxSpeed; |
| 701 | } |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | |
| 706 |
no outgoing calls
no test coverage detected