Skip to content

Commit

Permalink
- Blood: Put QAV interpolation code behind a CVAR for now until some …
Browse files Browse the repository at this point in the history
…final minor issues are resolved.

* Thanks to Dzierzan for testing and the reports.
  • Loading branch information
mjr4077au committed Jul 31, 2021
1 parent f6c7ed3 commit a9b75e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/core/gamecvars.cpp
Expand Up @@ -84,6 +84,7 @@ CVARD(Bool, cl_exhumedoldturn, false, CVAR_ARCHIVE, "enable/disable legacy turni
CVARD(Bool, cl_hudinterpolation, true, CVAR_ARCHIVE, "enable/disable HUD (weapon drawer) interpolation")
CVARD(Bool, cl_bloodvanillarun, true, CVAR_ARCHIVE, "enable/disable Blood's vanilla run mode")
CVARD(Bool, cl_bloodvanillabobbing, true, CVAR_ARCHIVE, "enable/disable Blood's vanilla bobbing while not using vanilla run mode")
CVARD(Bool, cl_bloodhudinterp, false, CVAR_ARCHIVE, "enable/disable Blood's HUD interpolation")


CUSTOM_CVARD(Int, cl_autoaim, 1, CVAR_ARCHIVE|CVAR_USERINFO, "enable/disable weapon autoaim")
Expand Down
1 change: 1 addition & 0 deletions source/core/gamecvars.h
Expand Up @@ -29,6 +29,7 @@ EXTERN_CVAR(Bool, cl_exhumedoldturn)
EXTERN_CVAR(Bool, cl_hudinterpolation)
EXTERN_CVAR(Bool, cl_bloodvanillarun)
EXTERN_CVAR(Bool, cl_bloodvanillabobbing)
EXTERN_CVAR(Bool, cl_bloodhudinterp)

EXTERN_CVAR(Bool, demorec_seeds_cvar)
EXTERN_CVAR(Bool, demoplay_diffs)
Expand Down
2 changes: 1 addition & 1 deletion source/games/blood/src/qav.cpp
Expand Up @@ -100,7 +100,7 @@ void QAV::Draw(double x, double y, int ticks, int stat, int shade, int palnum, b
double tileZ;
double tileA;

if (prevTile && cl_hudinterpolation && (nFrames > 1) && (nFrame != oFrame) && (smoothratio != MaxSmoothRatio) && interpolate)
if (cl_bloodhudinterp && prevTile && cl_hudinterpolation && (nFrames > 1) && (nFrame != oFrame) && (smoothratio != MaxSmoothRatio) && interpolate)
{
tileX += interpolatedvaluef(prevTile->x, thisTile->x, smoothratio);
tileY += interpolatedvaluef(prevTile->y, thisTile->y, smoothratio);
Expand Down

0 comments on commit a9b75e7

Please sign in to comment.