[Change] Allow external view to be rotated while game time is paused.
This commit is contained in:
parent
fa459bead3
commit
018909ebf4
@ -68,6 +68,16 @@ void Player::PollControls(void) {
|
|||||||
SetAngThrusterState(0, 0.0f);
|
SetAngThrusterState(0, 0.0f);
|
||||||
SetAngThrusterState(1, 0.0f);
|
SetAngThrusterState(1, 0.0f);
|
||||||
SetAngThrusterState(2, 0.0f);
|
SetAngThrusterState(2, 0.0f);
|
||||||
|
|
||||||
|
if(L3D::GetCamType() == L3D::CAM_EXTERNAL) {
|
||||||
|
if(L3D::KeyState(SDLK_UP)) m_external_view_rotx -= 1;
|
||||||
|
if(L3D::KeyState(SDLK_DOWN)) m_external_view_rotx += 1;
|
||||||
|
if(L3D::KeyState(SDLK_LEFT)) m_external_view_roty -= 1;
|
||||||
|
if(L3D::KeyState(SDLK_RIGHT)) m_external_view_roty += 1;
|
||||||
|
if(L3D::KeyState(SDLK_EQUALS)) m_external_view_dist -= 10;
|
||||||
|
if(L3D::KeyState(SDLK_MINUS)) m_external_view_dist += 10;
|
||||||
|
m_external_view_dist = MAX(50, m_external_view_dist);
|
||||||
|
}
|
||||||
|
|
||||||
if((time_accel == 0) || GetDockedWith()) {
|
if((time_accel == 0) || GetDockedWith()) {
|
||||||
return;
|
return;
|
||||||
@ -130,15 +140,6 @@ void Player::PollControls(void) {
|
|||||||
if(time_accel > 10) {
|
if(time_accel > 10) {
|
||||||
dBodySetAngularVel(m_body, 0, 0, 0);
|
dBodySetAngularVel(m_body, 0, 0, 0);
|
||||||
}
|
}
|
||||||
if(L3D::GetCamType() == L3D::CAM_EXTERNAL) {
|
|
||||||
if(L3D::KeyState(SDLK_UP)) m_external_view_rotx -= 1;
|
|
||||||
if(L3D::KeyState(SDLK_DOWN)) m_external_view_rotx += 1;
|
|
||||||
if(L3D::KeyState(SDLK_LEFT)) m_external_view_roty -= 1;
|
|
||||||
if(L3D::KeyState(SDLK_RIGHT)) m_external_view_roty += 1;
|
|
||||||
if(L3D::KeyState(SDLK_EQUALS)) m_external_view_dist -= 10;
|
|
||||||
if(L3D::KeyState(SDLK_MINUS)) m_external_view_dist += 10;
|
|
||||||
m_external_view_dist = MAX(50, m_external_view_dist);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(GetNavTarget() && L3D::KeyState(SDLK_END)) {
|
if(GetNavTarget() && L3D::KeyState(SDLK_END)) {
|
||||||
/* Temp test: Kill ("end") the target. */
|
/* Temp test: Kill ("end") the target. */
|
||||||
|
Loading…
Reference in New Issue
Block a user