Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching to third person resets camera #219

Open
robalni opened this issue Nov 1, 2020 · 0 comments
Open

Switching to third person resets camera #219

robalni opened this issue Nov 1, 2020 · 0 comments

Comments

@robalni
Copy link
Contributor

robalni commented Nov 1, 2020

When you spectate someone in first person and then switch to third person, you will no longer be spectating that person and you have to scroll back to the person you were spectating if you want to continue spectating the same person. This happens only the first time you switch to third person. If you do it again everything will be normal and you will not lose the player you were spectating anymore.

This happens because the game will try to load waypoints when you switch to third person (in game/game.cpp in function cameratv, calls ai::getwaypoints). When the waypoints have been loaded, game::specreset is called, which resets the camera as described.

My first thought is that loadwaypoints should not call specreset because I can't see why that would be needed. I don't know why that line was added but it was added in c580053.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant