Warning cleanup

This commit is contained in:
NepDisk 2026-03-07 22:06:44 -05:00
parent 6d7c1d378e
commit d38b88fbb9
5 changed files with 7 additions and 8 deletions

View file

@ -748,6 +748,7 @@ static int libd_drawAffine(lua_State *L)
lua_getfield(L, LUA_REGISTRYINDEX, "HUD_DRAW_LIST");
huddrawlist_h list = lua_touserdata(L, -1);
(void)list;
lua_pop(L, 1);
//if (LUA_HUD_IsDrawListValid(list))

View file

@ -589,9 +589,9 @@ static void R_DrawAffineColumnTemplate(drawcolumndata_t *dc)
intptr_t frac;
// Looks familiar.
const intptr_t fracstep = dc->iscale;
const intptr_t heightmask = dc->sourcelength-1; // CPhipps - specify type
constexpr INT32 npow2min = -1;
const INT32 npow2max = dc->sourcelength;
//const intptr_t heightmask = dc->sourcelength-1; // CPhipps - specify type
//constexpr INT32 npow2min = -1;
//const INT32 npow2max = dc->sourcelength;
// Framebuffer destination address.
// SoM: MAGIC

View file

@ -202,9 +202,6 @@ consvar_t cv_fakerollangle = CVAR_INIT ("fakerollangle", "Off", CV_SAVE, CV_OnOf
consvar_t cv_affineprescale = CVAR_INIT ("affineprescale", "Off", CV_SAVE, CV_OnOff, NULL);
consvar_t cv_affinemosaic = CVAR_INIT ("affinemosaic", "Off", CV_SAVE, CV_OnOff, NULL);
static CV_PossibleValue_t affineangle_cons_t[] = {{0, "MIN"}, {360 * FRACUNIT, "MAX"}, {0, NULL}};
static CV_PossibleValue_t affinetest_cons_t[] = {{0, "Off"}, {1, "On"}, {2, "Auto"}, {0, NULL}};
void SplitScreen_OnChange(void)
{
UINT8 i;

View file

@ -164,6 +164,7 @@ vector2_t* R_RotateSpriteOffsetsByPitchRoll(
{
fixed_t rotcos, rotsin, finx, finy;
vector2_t xvec, yvec;
(void)affine;
// input offsets
fixed_t xoffs, yoffs, xpiv, ypiv;

View file

@ -2081,7 +2081,7 @@ static void R_ProjectSprite(mobj_t *thing)
// Affines
boolean affinesprite = (((thing->player != NULL) || R_ThingIsAffineSprite(thing)) && (!splat));
affine_t affine_transform = {0};
affine_bounding_t affine_bounds = {0};
affine_bounding_t affine_bounds = {};
vector2_t affine_scale = {0};
vector2_t affine_distscale = {0};
f_vector2_t affine_pivotoffsetdiff = {0};
@ -2928,7 +2928,7 @@ static void R_ProjectSprite(mobj_t *thing)
vis->viewpoint.z = viewz;
vis->viewpoint.angle = viewangle;
vis->affine = {0};
vis->affine = {};
if (affinesprite)
{