fix: Stop player movement when switching camera type

This commit is contained in:
Vsevolod Kremianskii 2020-11-15 10:41:23 +07:00
parent 52e837d843
commit c0e5abec4a

View file

@ -268,6 +268,7 @@ void Game::toggleInGameCameraType() {
}
break;
case CameraType::ThirdPerson: {
_module->player().stopMovement();
shared_ptr<Area> area(_module->area());
FirstPersonCamera &firstPerson = static_cast<FirstPersonCamera &>(area->getCamera(CameraType::FirstPerson));
ThirdPersonCamera &thirdPerson = static_cast<ThirdPersonCamera &>(area->getCamera(CameraType::ThirdPerson));