diff --git a/src/dehacked.c b/src/dehacked.c index c71c55ac1..baa8a655e 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -2898,7 +2898,7 @@ static void readpatch(MYFILE *f, const char *name, UINT16 wad) char *word2; char *tmp; INT32 i = 0, j = 0, value; - texpatch_t patch = {0, 0, UINT16_MAX, UINT16_MAX, 0}; + texpatch_t patch = {0, 0, UINT16_MAX, UINT16_MAX, 0, 255, AST_COPY}; // Jump to the texture this patch belongs to, which, // coincidentally, is always the last one on the buffer cache. diff --git a/src/r_data.c b/src/r_data.c index 47bffd471..ddf626893 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -148,6 +148,8 @@ static inline void R_DrawColumnInCache(column_t *patch, UINT8 *cache, texpatch_t INT32 topdelta, prevdelta = -1; INT32 originy = originPatch->originy; + (void)patchheight; // This parameter is unused + while (patch->topdelta != 0xff) { topdelta = patch->topdelta; @@ -230,6 +232,8 @@ static inline void R_DrawTransColumnInCache(column_t *patch, UINT8 *cache, texpa INT32 topdelta, prevdelta = -1; INT32 originy = originPatch->originy; + (void)patchheight; // This parameter is unused + while (patch->topdelta != 0xff) { topdelta = patch->topdelta;