Difference for main/gauges.c from version 1.5 to 1.6


version 1.5 version 1.6
Line 19
 
Line 19
  * Inferno gauge drivers   * Inferno gauge drivers
  *   *
  * $Log$   * $Log$
    * Revision 1.6  1999/12/15 06:17:57  donut
    * fix mulitplayer name/kill/ping displays for large fonts
    *
  * Revision 1.5  1999/10/20 07:34:06  donut   * Revision 1.5  1999/10/20 07:34:06  donut
  * opengl rendered reticle, and better g3_draw_sphere   * opengl rendered reticle, and better g3_draw_sphere
  *   *
Line 2266
 
Line 2269
  n_left = (n_players+1)/2;   n_left = (n_players+1)/2;
   
  //If font size changes, this code might not work right anymore    //If font size changes, this code might not work right anymore
  Assert(GAME_FONT->ft_h==5 && GAME_FONT->ft_w==7);  // Assert(GAME_FONT->ft_h==5 && GAME_FONT->ft_w==7);
   
  fth = GAME_FONT->ft_h;   fth = GAME_FONT->ft_h;
   
  x0 = 1; x1 = 43;   x0 = 1; x1 = GAME_FONT->ft_aw*9;//was 43;
   
 #ifndef SHAREWARE  #ifndef SHAREWARE
  if (Game_mode & GM_MULTI_COOP)   if (Game_mode & GM_MULTI_COOP)
  x1 = 31;   x1 = GAME_FONT->ft_aw*7;//was 31;
 #endif  #endif
   
  save_y = y = grd_curcanv->cv_h - n_left*(fth+1);   save_y = y = grd_curcanv->cv_h - n_left*(fth+1);
   
  if (Cockpit_mode == CM_FULL_COCKPIT) {   if (Cockpit_mode == CM_FULL_COCKPIT) {
  save_y = y -= 6;   save_y = y -= 6;
 #ifndef SHAREWARE  //killed, redundant -MPM
  if (Game_mode & GM_MULTI_COOP)  //#ifndef SHAREWARE
  x1 = 33;  // if (Game_mode & GM_MULTI_COOP)
  else  // x1 = 33;
 #endif  // else
  x1 = 43;  //#endif
   // x1 = 43;
  }   }
   
  for (i=0;i<n_players;i++) {   for (i=0;i<n_players;i++) {
Line 2296
 
Line 2300
   
  if (i==n_left) {   if (i==n_left) {
  if (Cockpit_mode == CM_FULL_COCKPIT)   if (Cockpit_mode == CM_FULL_COCKPIT)
  x0 = grd_curcanv->cv_w - 53;   x0 = grd_curcanv->cv_w - GAME_FONT->ft_aw*12;//was - 53;
  else   else
  x0 = grd_curcanv->cv_w - 60;   x0 = grd_curcanv->cv_w - GAME_FONT->ft_aw*13;//was - 60;
 #ifndef SHAREWARE  #ifndef SHAREWARE
  if (Game_mode & GM_MULTI_COOP)   if (Game_mode & GM_MULTI_COOP)
  x1 = grd_curcanv->cv_w - 27;   x1 = grd_curcanv->cv_w - GAME_FONT->ft_aw*6;//was - 27;
  else   else
 #endif  #endif
 //added on 11/11/98 by Victor Rachels to add %  //added on 11/11/98 by Victor Rachels to add %
                              if(Show_kill_list == 2)                               if(Show_kill_list == 2)
                                 x1 = grd_curcanv->cv_w - 27;                                  x1 = grd_curcanv->cv_w - GAME_FONT->ft_aw*6;//was - 27;
                         else                          else
 //end this section addition - VR  //end this section addition - VR
                                 x1 = grd_curcanv->cv_w - 15;                                  x1 = grd_curcanv->cv_w - GAME_FONT->ft_aw*3;//was - 15;
  y = save_y;   y = save_y;
  }   }
    
Line 2373
 
Line 2377
                   int x2;                    int x2;
                     if(i<n_left)                      if(i<n_left)
                      {                       {
                        x2=x1+20;                         x2=x1 + GAME_FONT->ft_aw*4; //was +20;
                         if (Game_mode & GM_MULTI_COOP)                          if (Game_mode & GM_MULTI_COOP)
                          x2=x1+30;                           x2=x1 + GAME_FONT->ft_aw*7;//was +30;
                         if(Show_kill_list == 2)                          if(Show_kill_list == 2)
                          x2=x1+25;                           x2=x1 + GAME_FONT->ft_aw*12;//was +25;
                      }                       }
                     else                      else
                      x2=x0-40;                       x2=x0 - GAME_FONT->ft_aw*9;//was -40;
                    gr_printf(x2,y,"%lu %i%%",                     gr_printf(x2,y,"%lu %i%%",
                       fixmuldiv(ping_stats_getping(player_num),1000,F1_0),                        fixmuldiv(ping_stats_getping(player_num),1000,F1_0),
                       (100-((ping_stats_getgot(player_num)*100)/ping_stats_getsent(player_num))) );                        (100-((ping_stats_getgot(player_num)*100)/ping_stats_getsent(player_num))) );

Legend:
line(s) removed in v.1.5 
line(s) changed
 line(s) added in v.1.6