fix: Stop player movement when switching camera type
This commit is contained in:
parent
52e837d843
commit
c0e5abec4a
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue