diff --git a/src/p_local.h b/src/p_local.h index ee5c7ea95..5a6c95f4c 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -139,6 +139,7 @@ extern consvar_t cv_cam4_speed, cv_cam4_rotate, cv_cam4_rotspeed; extern consvar_t cv_slopeview; extern consvar_t cv_quaketilt; extern consvar_t cv_actionmovie; +extern consvar_t cv_windowquake; extern fixed_t t_cam_dist, t_cam_height, t_cam_rotate; extern fixed_t t_cam2_dist, t_cam2_height, t_cam2_rotate; diff --git a/src/p_tick.c b/src/p_tick.c index c451599ea..e9ab8145e 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -745,7 +745,8 @@ void P_Ticker(boolean run) quake.x = M_RandomRange(-ir,ir); quake.y = M_RandomRange(-ir,ir); quake.z = M_RandomRange(-ir,ir); - I_CursedWindowMovement(FixedInt(quake.x), FixedInt(quake.y)); + if (cv_windowquake.value) + I_CursedWindowMovement(FixedInt(quake.x), FixedInt(quake.y)); ir >>= 2; ir = M_RandomRange(-ir,ir); if (ir < 0) diff --git a/src/p_user.c b/src/p_user.c index aeec718d2..e3bbd9bc1 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -7119,6 +7119,7 @@ static CV_PossibleValue_t slopeview_cons_t[] = consvar_t cv_slopeview = {"slopeview", "On", CV_SAVE, slopeview_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_quaketilt = {"quaketilt", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_actionmovie = {"actionmovie", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_windowquake = {"windowquake", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; fixed_t t_cam_dist = -42; fixed_t t_cam_height = -42; diff --git a/src/r_main.c b/src/r_main.c index 1e664a408..e654544a2 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1849,6 +1849,7 @@ void R_RegisterEngineStuff(void) CV_RegisterVar(&cv_slopeview); CV_RegisterVar(&cv_quaketilt); CV_RegisterVar(&cv_actionmovie); + CV_RegisterVar(&cv_windowquake); CV_RegisterVar(&cv_showhud); CV_RegisterVar(&cv_translucenthud);