Difference for main/game.c from version 1.16 to 1.17


version 1.16 version 1.17
Line 19
 
Line 19
  * Game loop for Inferno   * Game loop for Inferno
  *   *
  * $Log$   * $Log$
    * Revision 1.17  1999/11/21 14:05:00  sekmu
    * observer mode
    *
  * Revision 1.16  1999/11/21 13:00:08  donut   * Revision 1.16  1999/11/21 13:00:08  donut
  * Changed screen_mode format.  Now directly encodes res into a 32bit int, rather than using arbitrary values.   * Changed screen_mode format.  Now directly encodes res into a 32bit int, rather than using arbitrary values.
  *   *
Line 459
 
Line 462
 #include "vlcnfire.h"  #include "vlcnfire.h"
 //end this section addition  //end this section addition
   
   //added on 11/20/99 by Victor Rachels to add observermode
   #include "observer.h"
   int I_am_observer = 0;
   //end this section addition - VR
   
 //added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access  //added 8/23/99 by Matt Mueller for hot key res/fullscreen changing, and menu access
 extern void change_res();  extern void change_res();
 extern void d1x_options_menu();  extern void d1x_options_menu();
Line 2747
 
Line 2755
            Players[Player_num].shields = MAX_SHIELDS;             Players[Player_num].shields = MAX_SHIELDS;
 //end this section addition  //end this section addition
   
   //added on 11/9/98 by Victor Rachels to add observer mode
           #ifdef NETWORK
            if(I_am_observer)
             {
               Physics_cheat_flag = 0xBADA55;
               multi_send_observerghost();
             }
           #endif
   //end this section addition - VR
   
 //added on 2/2/99 by Victor Rachels to add ban read/reset  //added on 2/2/99 by Victor Rachels to add ban read/reset
         #ifdef NETWORK          #ifdef NETWORK
         readbans();          readbans();
Line 2826
 
Line 2844
  }   }
   
 //Game settings reset  //Game settings reset
           //added on 11/20/99 by Victor Rachels for observermode
           I_am_observer = 0;
           //end this section addition - VR
         //added on 4/16/99 by Victor Rachels to add alt vulcanfire          //added on 4/16/99 by Victor Rachels to add alt vulcanfire
         #ifdef NETWORK          #ifdef NETWORK
         vulcan_init();          vulcan_init();
Line 2967
 
Line 2988
  memset( &Controls, 0, sizeof(control_info) );   memset( &Controls, 0, sizeof(control_info) );
  else   else
  controls_read_all(); //NOTE LINK TO ABOVE!!!   controls_read_all(); //NOTE LINK TO ABOVE!!!
   
                           //added on 11/20/99 by Victor Rachels to add observermode
                           if(I_am_observer)
                            {
                              Controls.fire_flare_down_count = 0;
                              Controls.fire_primary_state = 0;
                              Controls.fire_primary_down_count = 0;
                              Controls.fire_secondary_state = 0;
                              Controls.fire_secondary_down_count = 0;
                              Controls.drop_bomb_down_count = 0;
                            }
                           //end this section addition - VR
   
  check_rear_view();   check_rear_view();
   

Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17