Subversion Repositories Games.Chess Giants

Rev

Rev 171 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 171 Rev 193
Line 83... Line 83...
83
 
83
 
84
void Player_ResetView (player_t *player)
84
void Player_ResetView (player_t *player)
85
{
85
{
86
   // helper function to reset a player's current and custom view
86
   // helper function to reset a player's current and custom view
87
 
87
 
-
 
88
   // reset current view to standard view or top view, depending on user preferences
88
   // reset current view
89
   if (options.want_startwithtopview)
-
 
90
   {
-
 
91
      player->view_pitch = 89.99f;
-
 
92
      player->view_yaw = (player->color == COLOR_BLACK ? 90.0f : -90.0f);
-
 
93
      player->view_distance = 58.0f;
-
 
94
   }
-
 
95
   else
-
 
96
   {
89
   player->view_pitch = 55.0f;
97
      player->view_pitch = 55.0f;
90
   player->view_yaw = (player->color == COLOR_BLACK ? 90.0f : -90.0f);
98
      player->view_yaw = (player->color == COLOR_BLACK ? 90.0f : -90.0f);
91
   player->view_distance = 70.0f;
99
      player->view_distance = 70.0f;
-
 
100
   }
92
 
101
 
93
   // reset custom view too
102
   // reset custom view too
94
   player->custom_pitch = player->view_pitch;
103
   player->custom_pitch = player->view_pitch;
95
   player->custom_yaw = player->view_yaw;
104
   player->custom_yaw = player->view_yaw;
96
   player->custom_distance = player->view_distance;
105
   player->custom_distance = player->view_distance;