Make fucking with the window optional

This commit is contained in:
James R 2020-01-29 20:40:24 -08:00
parent 79fda7b814
commit c5df256d9e
4 changed files with 5 additions and 1 deletions

View file

@ -136,6 +136,7 @@ extern consvar_t cv_inverseslope;
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[MAXSPLITSCREENPLAYERS], t_cam_height[MAXSPLITSCREENPLAYERS], t_cam_rotate[MAXSPLITSCREENPLAYERS];

View file

@ -633,7 +633,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)

View file

@ -2736,6 +2736,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[MAXSPLITSCREENPLAYERS] = {-42,-42,-42,-42};
fixed_t t_cam_height[MAXSPLITSCREENPLAYERS] = {-42,-42,-42,-42};

View file

@ -1711,6 +1711,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);