Skip to content

Commit

Permalink
reset zoom/rotation with shift
Browse files Browse the repository at this point in the history
  • Loading branch information
robn committed Feb 2, 2011
1 parent e36584f commit ae409b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SectorView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@ void SectorView::Update()

if (Pi::KeyState(SDLK_c)) {
GotoSystem(playerLocSecX, playerLocSecY, playerLocSysIdx);
m_rot_x = m_rot_z = 0;
m_zoom = 1.2;
if (Pi::KeyState(SDLK_LSHIFT)) {
m_rot_x = m_rot_z = 0;
m_zoom = 1.2;
}
}

float moveSpeed = 1.0;
Expand Down

0 comments on commit ae409b8

Please sign in to comment.