From 5877cc40d921cb914595976dc1cd978d22d904c3 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Sun, 19 Mar 2017 20:08:33 +0000 Subject: [PATCH] You actually don't need to set ColumnDrawerPointer to &R_DrawColumnInCache etc, C allows you to set it directly to R_DrawColumnInCache etc. ColumnDrawerPointer can then be called without the (* ) stuff --- src/r_data.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_data.c b/src/r_data.c index ddf626893..4df5209a5 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -426,11 +426,11 @@ static UINT8 *R_GenerateTexture(size_t texnum) { if (patch->alpha < 255/11) // Is the patch way too translucent? Don't render then. continue; - ColumnDrawerPointer = (patch->flip & 2) ? &R_DrawTransFlippedColumnInCache : &R_DrawTransColumnInCache; + ColumnDrawerPointer = (patch->flip & 2) ? R_DrawTransFlippedColumnInCache : R_DrawTransColumnInCache; } else { - ColumnDrawerPointer = (patch->flip & 2) ? &R_DrawFlippedColumnInCache : &R_DrawColumnInCache; + ColumnDrawerPointer = (patch->flip & 2) ? R_DrawFlippedColumnInCache : R_DrawColumnInCache; } realpatch = W_CacheLumpNumPwad(patch->wad, patch->lump, PU_CACHE); @@ -456,7 +456,7 @@ static UINT8 *R_GenerateTexture(size_t texnum) // generate column ofset lookup colofs[x] = LONG((x * texture->height) + (texture->width*4)); - (*ColumnDrawerPointer)(patchcol, block + LONG(colofs[x]), patch, texture->height, height); + ColumnDrawerPointer(patchcol, block + LONG(colofs[x]), patch, texture->height, height); } }