From 351a391e43fdfa8fe48239aec8960dabcbd9fe8a Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sun, 19 Mar 2017 19:43:02 +0000 Subject: [PATCH] Fixed errors reported while compiling --- src/dehacked.c | 2 +- src/r_data.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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;