Skip to content

Commit

Permalink
cap the timescale sensitivity scale when timescale > 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Razish committed Feb 10, 2024
1 parent 540edeb commit a7f171b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/cgame/cg_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView ) {
//FIXME: should really send forcePowersActive over network onto cg.snap->ps...
const int fpActive = cg_entities[0].gent->client->ps.forcePowersActive;
const bool matrixMode = !!(fpActive & ((1 << FP_SPEED) | (1 << FP_RAGE)));
float speed = cg.refdef.fov_y / 75.0 * (matrixMode ? 1.0f : cg_timescale.value);
float speed = cg.refdef.fov_y / 75.0 * (matrixMode ? 1.0f : Q_min(cg_timescale.value, 1.0f));

//FIXME: junk code, BUG:168

Expand Down
2 changes: 1 addition & 1 deletion codeJK2/cgame/cg_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView ) {

// let the client system know what our weapon and zoom settings are
//FIXME: should really send forcePowersActive over network onto cg.snap->ps...
float speed = cg.refdef.fov_y / 75.0 * ((cg_entities[0].gent->client->ps.forcePowersActive&(1<<FP_SPEED))?1.0f:cg_timescale.value);
float speed = cg.refdef.fov_y / 75.0 * ((cg_entities[0].gent->client->ps.forcePowersActive&(1<<FP_SPEED))?1.0f:Q_min(cg_timescale.value, 1.0f));

//FIXME: junk code, BUG:168

Expand Down

0 comments on commit a7f171b

Please sign in to comment.