Difference for main/controls.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 19
 
Line 19
  * Code for controlling player movement   * Code for controlling player movement
  *    *
  * $Log$   * $Log$
    * Revision 1.3  2000/04/19 21:30:00  sekmu
    * movable death-cam from WraithX
    *
  * Revision 1.2  1999/11/21 14:05:00  sekmu   * Revision 1.2  1999/11/21 14:05:00  sekmu
  * observer mode   * observer mode
  *   *
Line 232
 
Line 235
   
  Assert(FrameTime > 0); //Get MATT if hit this!   Assert(FrameTime > 0); //Get MATT if hit this!
   
  if (Player_is_dead) {  //this section commented and moved to the bottom by WraithX
  vm_vec_zero(&obj->mtype.phys_info.rotthrust);  // if (Player_is_dead) {
  vm_vec_zero(&obj->mtype.phys_info.thrust);  // vm_vec_zero(&obj->mtype.phys_info.rotthrust);
  return;  // vm_vec_zero(&obj->mtype.phys_info.thrust);
  }  // return;
   // }
   //end of section to be moved.
   
 //added/edited on 11/20/99 by Victor Rachels to add observer mode  //added/edited on 11/20/99 by Victor Rachels to add observer mode
 //        if ((obj->type!=OBJ_PLAYER) || (obj->id!=Player_num)) return;   //references to player_ship require that this obj be the player  //        if ((obj->type!=OBJ_PLAYER) || (obj->id!=Player_num)) return;   //references to player_ship require that this obj be the player
Line 295
 
Line 300
   
  vm_vec_scale( &obj->mtype.phys_info.rotthrust, fixdiv(Player_ship->max_rotthrust,ft) );   vm_vec_scale( &obj->mtype.phys_info.rotthrust, fixdiv(Player_ship->max_rotthrust,ft) );
  }   }
   
    //moved here by WraithX
    if (Player_is_dead) {
    //vm_vec_zero(&obj->mtype.phys_info.rotthrust); //let dead players rotate, changed by WraithX
    vm_vec_zero(&obj->mtype.phys_info.thrust);  //don't let dead players move, changed by WraithX
    return;
    }//end if
   
   
 }  }

Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3