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


version 1.3 version 1.4
Line 19
 
Line 19
  * Code for controlling player movement   * Code for controlling player movement
  *    *
  * $Log$   * $Log$
    * Revision 1.4  2003/07/11 21:32:28  donut
    * make ship bobbing fps-independant
    *
  * Revision 1.3  2000/04/19 21:30:00  sekmu   * Revision 1.3  2000/04/19 21:30:00  sekmu
  * movable death-cam from WraithX   * movable death-cam from WraithX
  *   *
Line 271
 
Line 274
  if (obj->mtype.phys_info.flags & PF_WIGGLE) {   if (obj->mtype.phys_info.flags & PF_WIGGLE) {
  fix swiggle;   fix swiggle;
  fix_fastsincos(GameTime, &swiggle, NULL);   fix_fastsincos(GameTime, &swiggle, NULL);
    if (FrameTime < F1_0) // Only scale wiggle if getting at least 1 FPS, to avoid causing the opposite problem.
    swiggle = fixmul(swiggle*20, FrameTime); //make wiggle fps-independant (based on pre-scaled amount of wiggle at 20 FPS)
  vm_vec_scale_add2(&obj->mtype.phys_info.velocity,&obj->orient.uvec,fixmul(swiggle,Player_ship->wiggle));   vm_vec_scale_add2(&obj->mtype.phys_info.velocity,&obj->orient.uvec,fixmul(swiggle,Player_ship->wiggle));
  }   }
   

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